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

Side by Side Diff: net/ssl/default_channel_id_store.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 | « net/ssl/channel_id_store.h ('k') | net/ssl/default_channel_id_store.cc » ('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 2014 The Chromium Authors. All rights reserved. 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 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 NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ 5 #ifndef NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_
6 #define NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ 6 #define NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void SetChannelID(std::unique_ptr<ChannelID> channel_id) override; 54 void SetChannelID(std::unique_ptr<ChannelID> channel_id) override;
55 void DeleteChannelID(const std::string& server_identifier, 55 void DeleteChannelID(const std::string& server_identifier,
56 const base::Closure& callback) override; 56 const base::Closure& callback) override;
57 void DeleteForDomainsCreatedBetween( 57 void DeleteForDomainsCreatedBetween(
58 const base::Callback<bool(const std::string&)>& domain_predicate, 58 const base::Callback<bool(const std::string&)>& domain_predicate,
59 base::Time delete_begin, 59 base::Time delete_begin,
60 base::Time delete_end, 60 base::Time delete_end,
61 const base::Closure& callback) override; 61 const base::Closure& callback) override;
62 void DeleteAll(const base::Closure& callback) override; 62 void DeleteAll(const base::Closure& callback) override;
63 void GetAllChannelIDs(const GetChannelIDListCallback& callback) override; 63 void GetAllChannelIDs(const GetChannelIDListCallback& callback) override;
64 void Flush() override;
64 int GetChannelIDCount() override; 65 int GetChannelIDCount() override;
65 void SetForceKeepSessionState() override; 66 void SetForceKeepSessionState() override;
66 bool IsEphemeral() override; 67 bool IsEphemeral() override;
67 68
68 private: 69 private:
69 class Task; 70 class Task;
70 class GetChannelIDTask; 71 class GetChannelIDTask;
71 class SetChannelIDTask; 72 class SetChannelIDTask;
72 class DeleteChannelIDTask; 73 class DeleteChannelIDTask;
73 class DeleteForDomainsCreatedBetweenTask; 74 class DeleteForDomainsCreatedBetweenTask;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Initializes the store and retrieves the existing channel_ids. This will be 158 // Initializes the store and retrieves the existing channel_ids. This will be
158 // called only once at startup. Note that the channel_ids are individually 159 // called only once at startup. Note that the channel_ids are individually
159 // allocated and that ownership is transferred to the caller upon return. 160 // allocated and that ownership is transferred to the caller upon return.
160 // The |loaded_callback| must not be called synchronously. 161 // The |loaded_callback| must not be called synchronously.
161 virtual void Load(const LoadedCallback& loaded_callback) = 0; 162 virtual void Load(const LoadedCallback& loaded_callback) = 0;
162 163
163 virtual void AddChannelID(const ChannelID& channel_id) = 0; 164 virtual void AddChannelID(const ChannelID& channel_id) = 0;
164 165
165 virtual void DeleteChannelID(const ChannelID& channel_id) = 0; 166 virtual void DeleteChannelID(const ChannelID& channel_id) = 0;
166 167
168 virtual void Flush() = 0;
169
167 // When invoked, instructs the store to keep session related data on 170 // When invoked, instructs the store to keep session related data on
168 // destruction. 171 // destruction.
169 virtual void SetForceKeepSessionState() = 0; 172 virtual void SetForceKeepSessionState() = 0;
170 173
171 protected: 174 protected:
172 friend class base::RefCountedThreadSafe<PersistentStore>; 175 friend class base::RefCountedThreadSafe<PersistentStore>;
173 176
174 PersistentStore(); 177 PersistentStore();
175 virtual ~PersistentStore(); 178 virtual ~PersistentStore();
176 179
177 private: 180 private:
178 DISALLOW_COPY_AND_ASSIGN(PersistentStore); 181 DISALLOW_COPY_AND_ASSIGN(PersistentStore);
179 }; 182 };
180 183
181 } // namespace net 184 } // namespace net
182 185
183 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ 186 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_
OLDNEW
« no previous file with comments | « net/ssl/channel_id_store.h ('k') | net/ssl/default_channel_id_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698