OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ |
6 #define CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "net/cookies/cookie_monster.h" | 9 #include "net/cookies/cookie_monster.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class FilePath; | 12 class FilePath; |
13 } | 13 } |
14 | 14 |
15 namespace quota { | 15 namespace quota { |
16 class SpecialStoragePolicy; | 16 class SpecialStoragePolicy; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 // This class provides an interface that the persistent cookies store can use | |
erikwright (departed)
2013/10/07 20:39:25
Move to content/public/browser/cookie_crypto_deleg
bcwhite
2013/10/08 16:10:25
Done.
| |
22 // in order to protect the cookie values. | |
23 class CookieCryptoDelegate { | |
24 public: | |
25 virtual ~CookieCryptoDelegate() {} | |
26 virtual bool EncryptString(const std::string& plaintext, | |
27 std::string* ciphertext) = 0; | |
28 virtual bool DecryptString(const std::string& ciphertext, | |
29 std::string* plaintext) = 0; | |
30 }; | |
31 | |
21 // All blocking database accesses will be performed on |background_task_runner|. | 32 // All blocking database accesses will be performed on |background_task_runner|. |
22 // If background_task_runner is NULL, then a background task runner will be | 33 // If background_task_runner is NULL, then a background task runner will be |
23 // created internally. | 34 // created internally. |
24 CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore( | 35 CONTENT_EXPORT net::CookieStore* CreatePersistentCookieStore( |
25 const base::FilePath& path, | 36 const base::FilePath& path, |
26 bool restore_old_session_cookies, | 37 bool restore_old_session_cookies, |
27 quota::SpecialStoragePolicy* storage_policy, | 38 quota::SpecialStoragePolicy* storage_policy, |
28 net::CookieMonster::Delegate* cookie_monster_delegate, | 39 net::CookieMonster::Delegate* cookie_monster_delegate, |
29 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner); | 40 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, |
41 CookieCryptoDelegate* crypto_delegate); | |
erikwright (departed)
2013/10/07 20:39:25
scoped_ptr
| |
30 | 42 |
31 } // namespace content | 43 } // namespace content |
32 | 44 |
33 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ | 45 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ |
OLD | NEW |