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

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

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/application/app_lifetime_helper.h"
8 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h" 9 #include "mojo/services/network/public/interfaces/cookie_store.mojom.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 InterfaceImpl<CookieStore> {
15 public: 16 public:
16 CookieStoreImpl(NetworkContext* context, const GURL& origin); 17 CookieStoreImpl(NetworkContext* context,
18 const GURL& origin,
19 scoped_ptr<mojo::AppRefCount> app_refcount);
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 scoped_ptr<mojo::AppRefCount> app_refcount_;
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
« no previous file with comments | « mojo/runner/android/native_viewport_application_loader.cc ('k') | mojo/services/network/cookie_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698