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"
15 class CookieStoreImpl
: public InterfaceImpl
<CookieStore
> {
17 CookieStoreImpl(NetworkContext
* context
,
19 scoped_ptr
<mojo::AppRefCount
> app_refcount
);
20 ~CookieStoreImpl() override
;
23 // CookieStore methods:
24 void Get(const String
& url
, const Callback
<void(String
)>& callback
) override
;
25 void Set(const String
& url
,
27 const Callback
<void(bool)>& callback
) override
;
29 NetworkContext
* context_
;
31 scoped_ptr
<mojo::AppRefCount
> app_refcount_
;
33 DISALLOW_COPY_AND_ASSIGN(CookieStoreImpl
);
38 #endif // MOJO_SERVICES_NETWORK_COOKIE_STORE_IMPL_H_