summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h b/chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h
new file mode 100644
index 00000000000..aed59ca44e9
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/cookie_store/window_cookie_store.h
@@ -0,0 +1,25 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_COOKIE_STORE_WINDOW_COOKIE_STORE_H_
+#define THIRD_PARTY_BLINK_RENDERER_MODULES_COOKIE_STORE_WINDOW_COOKIE_STORE_H_
+
+#include "third_party/blink/renderer/platform/wtf/allocator.h"
+
+namespace blink {
+
+class CookieStore;
+class LocalDOMWindow;
+
+// Exposes a CookieStore as the "cookieStore" attribute on the Window global.
+class WindowCookieStore {
+ STATIC_ONLY(WindowCookieStore);
+
+ public:
+ static CookieStore* cookieStore(LocalDOMWindow&);
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_COOKIE_STORE_WINDOW_COOKIE_STORE_H_