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

Side by Side Diff: mojo/services/network/cookie_store_impl.h

Issue 1227373002: Roll mojo SDK to 734c6e1652ff2f3b696e441722838f453f4f9b42 (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_ 5 #ifndef MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_ 6 #define MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
7 7
8 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h" 8 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
9 #include "url/gurl.h" 10 #include "url/gurl.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 class NetworkContext; 13 class NetworkContext;
13 14
14 class CookieStoreImpl : public InterfaceImpl<CookieStore> { 15 class CookieStoreImpl : public CookieStore {
15 public: 16 public:
16 CookieStoreImpl(NetworkContext* context, const GURL& origin); 17 CookieStoreImpl(InterfaceRequest<CookieStore> request,
18 NetworkContext* context,
19 const GURL& origin);
17 ~CookieStoreImpl() override; 20 ~CookieStoreImpl() override;
18 21
19 private: 22 private:
20 // CookieStore methods: 23 // CookieStore methods:
21 void Get(const String& url, const Callback<void(String)>& callback) override; 24 void Get(const String& url, const Callback<void(String)>& callback) override;
22 void Set(const String& url, 25 void Set(const String& url,
23 const String& cookie, 26 const String& cookie,
24 const Callback<void(bool)>& callback) override; 27 const Callback<void(bool)>& callback) override;
25 28
26 NetworkContext* context_; 29 NetworkContext* context_;
27 GURL origin_; 30 GURL origin_;
31 mojo::StrongBinding<CookieStore> binding_;
viettrungluu 2015/07/09 16:41:52 Here and elsewhere: I have a slight preference for
qsr 2015/07/10 07:53:17 Done. But I personally have a preference for the o
28 32
29 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl); 33 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl);
30 }; 34 };
31 35
32 } // namespace mojo 36 } // namespace mojo
33 37
34 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_ 38 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698