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 CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
6 #define CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_
8 #include "base/memory/ref_counted.h"
9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/cookie_store_factory.h"
15 class CookieMonsterDelegate
;
18 namespace chrome_browser_net
{
20 // Factory method for creating a CookieStore delegate, taking a
21 // |next_cookie_monster_delegate| which may be NULL. This delegate is stateless
22 // so only one is necessary per profile.
23 net::CookieMonsterDelegate
* CreateCookieDelegate(
24 scoped_refptr
<net::CookieMonsterDelegate
> next_cookie_monster_delegate
);
26 // Factory method for returning a CookieCryptoDelegate if one is appropriate for
27 // this platform. The object returned is a LazyInstance. Ownership is not
29 net::CookieCryptoDelegate
* GetCookieCryptoDelegate();
31 } // namespace chrome_browser_net
33 #endif // CHROME_BROWSER_NET_COOKIE_STORE_UTIL_H_