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

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

Issue 789243002: Restructure public side of network service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 6 years 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
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | mojo/services/network/net_adapters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/interfaces/network/cookie_store.mojom.h" 8 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class NetworkContext; 12 class NetworkContext;
13 13
14 class CookieStoreImpl : public InterfaceImpl<CookieStore> { 14 class CookieStoreImpl : public InterfaceImpl<CookieStore> {
15 public: 15 public:
16 CookieStoreImpl(NetworkContext* context, const GURL& origin); 16 CookieStoreImpl(NetworkContext* context, const GURL& origin);
17 ~CookieStoreImpl() override; 17 ~CookieStoreImpl() override;
18 18
19 private: 19 private:
20 // CookieStore methods: 20 // CookieStore methods:
21 void Get(const String& url, const Callback<void(String)>& callback) override; 21 void Get(const String& url, const Callback<void(String)>& callback) override;
22 void Set(const String& url, 22 void Set(const String& url,
23 const String& cookie, 23 const String& cookie,
24 const Callback<void(bool)>& callback) override; 24 const Callback<void(bool)>& callback) override;
25 25
26 NetworkContext* context_; 26 NetworkContext* context_;
27 GURL origin_; 27 GURL origin_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl); 29 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl);
30 }; 30 };
31 31
32 } // namespace mojo 32 } // namespace mojo
33 33
34 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_ 34 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | mojo/services/network/net_adapters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698