Encrypt all stored cookies on selected operating systems.
[chromium-blink-merge.git] / content / public / browser / cookie_store_factory.h
blob300178ed85cfd4ca64c8ece425893a31dde93155
1 // Copyright (c) 2013 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 CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
6 #define CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
8 #include "content/common/content_export.h"
9 #include "net/cookies/cookie_monster.h"
11 namespace base {
12 class FilePath;
15 namespace quota {
16 class SpecialStoragePolicy;
19 namespace content {
20 class CookieCryptoDelegate;
22 // All blocking database accesses will be performed on |background_task_runner|.
23 // Callbacks for data load events will be performed on |client_task_runner|.
24 CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore(
25 const base::FilePath& path,
26 bool restore_old_session_cookies,
27 quota::SpecialStoragePolicy* storage_policy,
28 net::CookieMonster::Delegate* cookie_monster_delegate,
29 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner,
30 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
31 scoped_ptr<CookieCryptoDelegate> crypto_delegate);
33 // Uses the default client_task_runner and background_task_runner.
34 CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore(
35 const base::FilePath& path,
36 bool restore_old_session_cookies,
37 quota::SpecialStoragePolicy* storage_policy,
38 net::CookieMonster::Delegate* cookie_monster_delegate,
39 scoped_ptr<CookieCryptoDelegate> crypto_delegate);
41 } // namespace content
43 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_