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

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

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « mojo/services/network/android_hooks.cc ('k') | mojo/services/network/cookie_store_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
11 #include "mojo/shell/public/cpp/message_loop_ref.h"
12 #include "url/gurl.h"
13
14 namespace mojo {
15 class NetworkContext;
16
17 class CookieStoreImpl : public CookieStore {
18 public:
19 CookieStoreImpl(NetworkContext* context,
20 const GURL& origin,
21 scoped_ptr<mojo::MessageLoopRef> app_refcount,
22 InterfaceRequest<CookieStore> request);
23 ~CookieStoreImpl() override;
24
25 private:
26 // CookieStore methods:
27 void Get(const String& url, const Callback<void(String)>& callback) override;
28 void Set(const String& url,
29 const String& cookie,
30 const Callback<void(bool)>& callback) override;
31
32 NetworkContext* context_;
33 GURL origin_;
34 scoped_ptr<mojo::MessageLoopRef> app_refcount_;
35 StrongBinding<CookieStore> binding_;
36
37 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl);
38 };
39
40 } // namespace mojo
41
42 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/network/android_hooks.cc ('k') | mojo/services/network/cookie_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698