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 <memory> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
18 } | 18 } |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 class CookieCryptoDelegate; | 21 class CookieCryptoDelegate; |
22 class CookieMonsterDelegate; | 22 class CookieMonsterDelegate; |
23 class CookieStore; | 23 class CookieStore; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // |background_task_runner|. If nullptr, uses a SequencedTaskRunner from the | 89 // |background_task_runner|. If nullptr, uses a SequencedTaskRunner from the |
90 // BrowserThread blocking pool. | 90 // BrowserThread blocking pool. |
91 // | 91 // |
92 // Only used for persistent cookie stores. | 92 // Only used for persistent cookie stores. |
93 scoped_refptr<base::SequencedTaskRunner> background_task_runner; | 93 scoped_refptr<base::SequencedTaskRunner> background_task_runner; |
94 | 94 |
95 // If non-empty, overrides the default list of schemes that support cookies. | 95 // If non-empty, overrides the default list of schemes that support cookies. |
96 std::vector<std::string> cookieable_schemes; | 96 std::vector<std::string> cookieable_schemes; |
97 }; | 97 }; |
98 | 98 |
99 CONTENT_EXPORT scoped_ptr<net::CookieStore> CreateCookieStore( | 99 CONTENT_EXPORT std::unique_ptr<net::CookieStore> CreateCookieStore( |
100 const CookieStoreConfig& config); | 100 const CookieStoreConfig& config); |
101 | 101 |
102 } // namespace content | 102 } // namespace content |
103 | 103 |
104 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ | 104 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ |
OLD | NEW |