Introduce about flags for chrome hosted mode
[chromium-blink-merge.git] / mojo / services / network / cookie_store_impl.h
blob4f5cc7e97ea6a72faef4cbe366db55a08270e679
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.
5 #ifndef MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
6 #define MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_
8 #include "mojo/application/public/cpp/app_lifetime_helper.h"
9 #include "mojo/services/network/public/interfaces/cookie_store.mojom.h"
10 #include "url/gurl.h"
12 namespace mojo {
13 class NetworkContext;
15 class CookieStoreImpl : public InterfaceImpl<CookieStore> {
16 public:
17 CookieStoreImpl(NetworkContext* context,
18 const GURL& origin,
19 scoped_ptr<mojo::AppRefCount> app_refcount);
20 ~CookieStoreImpl() override;
22 private:
23 // CookieStore methods:
24 void Get(const String& url, const Callback<void(String)>& callback) override;
25 void Set(const String& url,
26 const String& cookie,
27 const Callback<void(bool)>& callback) override;
29 NetworkContext* context_;
30 GURL origin_;
31 scoped_ptr<mojo::AppRefCount> app_refcount_;
33 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl);
36 } // namespace mojo
38 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_