OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |