Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: mojo/services/network/cookie_store_impl.h

Issue 409883007: Mojo: add support for cookies to HTMLViewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/services/network/cookie_store_impl.h
diff --git a/mojo/services/network/cookie_store_impl.h b/mojo/services/network/cookie_store_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..46e1d2c84ba81378983a42c208af709c7cb21676
--- /dev/null
+++ b/mojo/services/network/cookie_store_impl.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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 MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
+#define MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
+
+#include "mojo/services/public/interfaces/network/cookie_store.mojom.h"
+#include "url/gurl.h"
+
+namespace mojo {
+class NetworkContext;
+
+class CookieStoreImpl : public InterfaceImpl<CookieStore> {
+ public:
+ CookieStoreImpl(NetworkContext* context, const GURL& origin);
+ virtual ~CookieStoreImpl();
+
+ private:
+ // CookieStore methods:
+ virtual void Get(const String& url,
+ const Callback<void(String)>& callback) OVERRIDE;
+ virtual void Set(const String& url, const String& cookie,
+ const Callback<void(bool)>& callback) OVERRIDE;
+
+ NetworkContext* context_;
+ GURL origin_;
+};
jamesr 2014/07/22 23:53:44 DISALLOW_blahblahblah ?
+
+} // namespace mojo
+
+#endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698