Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: content/public/browser/cookie_store_factory.h

Issue 2874973002: Flush Channel IDs when Cookies get saved to a persistent backend (Closed)
Patch Set: Initialize channel_id_service to nullptr Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/net/quota_policy_cookie_store.cc ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.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 ChannelIDService;
21 class CookieCryptoDelegate; 22 class CookieCryptoDelegate;
22 class CookieMonsterDelegate; 23 class CookieMonsterDelegate;
23 class CookieStore; 24 class CookieStore;
24 } 25 }
25 26
26 namespace storage { 27 namespace storage {
27 class SpecialStoragePolicy; 28 class SpecialStoragePolicy;
28 } 29 }
29 30
30 namespace content { 31 namespace content {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // The following are infrequently used cookie store parameters. 73 // The following are infrequently used cookie store parameters.
73 // Rather than clutter the constructor API, these are assigned a default 74 // Rather than clutter the constructor API, these are assigned a default
74 // value on CookieStoreConfig construction. Clients should then override 75 // value on CookieStoreConfig construction. Clients should then override
75 // them as necessary. 76 // them as necessary.
76 77
77 // Used to provide encryption hooks for the cookie store. The 78 // Used to provide encryption hooks for the cookie store. The
78 // CookieCryptoDelegate must outlive any cookie store created with this 79 // CookieCryptoDelegate must outlive any cookie store created with this
79 // config. 80 // config.
80 net::CookieCryptoDelegate* crypto_delegate; 81 net::CookieCryptoDelegate* crypto_delegate;
81 82
83 // Provides the cookie store with a pointer to the corresponding
84 // ChannelIDService that should be used with that cookie store. The
85 // ChannelIDService must outlive any cookie store created with this config.
86 net::ChannelIDService* channel_id_service;
87
82 // Callbacks for data load events will be performed on |client_task_runner|. 88 // Callbacks for data load events will be performed on |client_task_runner|.
83 // If nullptr, uses the task runner for BrowserThread::IO. 89 // If nullptr, uses the task runner for BrowserThread::IO.
84 // 90 //
85 // Only used for persistent cookie stores. 91 // Only used for persistent cookie stores.
86 scoped_refptr<base::SequencedTaskRunner> client_task_runner; 92 scoped_refptr<base::SequencedTaskRunner> client_task_runner;
87 93
88 // All blocking database accesses will be performed on 94 // All blocking database accesses will be performed on
89 // |background_task_runner|. If nullptr, uses a SequencedTaskRunner from the 95 // |background_task_runner|. If nullptr, uses a SequencedTaskRunner from the
90 // BrowserThread blocking pool. 96 // BrowserThread blocking pool.
91 // 97 //
92 // Only used for persistent cookie stores. 98 // Only used for persistent cookie stores.
93 scoped_refptr<base::SequencedTaskRunner> background_task_runner; 99 scoped_refptr<base::SequencedTaskRunner> background_task_runner;
94 100
95 // If non-empty, overrides the default list of schemes that support cookies. 101 // If non-empty, overrides the default list of schemes that support cookies.
96 std::vector<std::string> cookieable_schemes; 102 std::vector<std::string> cookieable_schemes;
97 }; 103 };
98 104
99 CONTENT_EXPORT std::unique_ptr<net::CookieStore> CreateCookieStore( 105 CONTENT_EXPORT std::unique_ptr<net::CookieStore> CreateCookieStore(
100 const CookieStoreConfig& config); 106 const CookieStoreConfig& config);
101 107
102 } // namespace content 108 } // namespace content
103 109
104 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_ 110 #endif // CONTENT_PUBLIC_BROWSER_COOKIE_STORE_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/net/quota_policy_cookie_store.cc ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698