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

Side by Side Diff: net/ssl/default_channel_id_store.h

Issue 381073002: Move sqlite_channel_id_store from chrome/browser/net to net/extras. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DeleteAll(server_identifiers) method. Created 6 years, 4 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
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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Initializes the store and retrieves the existing channel_ids. This will be 166 // Initializes the store and retrieves the existing channel_ids. This will be
167 // called only once at startup. Note that the channel_ids are individually 167 // called only once at startup. Note that the channel_ids are individually
168 // allocated and that ownership is transferred to the caller upon return. 168 // allocated and that ownership is transferred to the caller upon return.
169 // The |loaded_callback| must not be called synchronously. 169 // The |loaded_callback| must not be called synchronously.
170 virtual void Load(const LoadedCallback& loaded_callback) = 0; 170 virtual void Load(const LoadedCallback& loaded_callback) = 0;
171 171
172 virtual void AddChannelID(const ChannelID& channel_id) = 0; 172 virtual void AddChannelID(const ChannelID& channel_id) = 0;
173 173
174 virtual void DeleteChannelID(const ChannelID& channel_id) = 0; 174 virtual void DeleteChannelID(const ChannelID& channel_id) = 0;
175 175
176 // Delete channel ids for all servers in |server_identifiers|.
177 virtual void DeleteAll(
178 const std::vector<std::string>& server_identifiers) = 0;
179
176 // When invoked, instructs the store to keep session related data on 180 // When invoked, instructs the store to keep session related data on
177 // destruction. 181 // destruction.
178 virtual void SetForceKeepSessionState() = 0; 182 virtual void SetForceKeepSessionState() = 0;
179 183
180 protected: 184 protected:
181 friend class base::RefCountedThreadSafe<PersistentStore>; 185 friend class base::RefCountedThreadSafe<PersistentStore>;
182 186
183 PersistentStore(); 187 PersistentStore();
184 virtual ~PersistentStore(); 188 virtual ~PersistentStore();
185 189
186 private: 190 private:
187 DISALLOW_COPY_AND_ASSIGN(PersistentStore); 191 DISALLOW_COPY_AND_ASSIGN(PersistentStore);
188 }; 192 };
189 193
190 } // namespace net 194 } // namespace net
191 195
192 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_ 196 #endif // NET_SSL_DEFAULT_CHANNEL_ID_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698