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 #include "net/ssl/default_channel_id_store.h" | 5 #include "net/ssl/default_channel_id_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 const base::Closure& callback) { | 273 const base::Closure& callback) { |
274 DeleteForDomainsCreatedBetween(base::Bind(&AllDomainsPredicate), base::Time(), | 274 DeleteForDomainsCreatedBetween(base::Bind(&AllDomainsPredicate), base::Time(), |
275 base::Time(), callback); | 275 base::Time(), callback); |
276 } | 276 } |
277 | 277 |
278 void DefaultChannelIDStore::GetAllChannelIDs( | 278 void DefaultChannelIDStore::GetAllChannelIDs( |
279 const GetChannelIDListCallback& callback) { | 279 const GetChannelIDListCallback& callback) { |
280 RunOrEnqueueTask(std::unique_ptr<Task>(new GetAllChannelIDsTask(callback))); | 280 RunOrEnqueueTask(std::unique_ptr<Task>(new GetAllChannelIDsTask(callback))); |
281 } | 281 } |
282 | 282 |
| 283 void DefaultChannelIDStore::Flush() { |
| 284 store_->Flush(); |
| 285 } |
| 286 |
283 int DefaultChannelIDStore::GetChannelIDCount() { | 287 int DefaultChannelIDStore::GetChannelIDCount() { |
284 DCHECK(CalledOnValidThread()); | 288 DCHECK(CalledOnValidThread()); |
285 | 289 |
286 return channel_ids_.size(); | 290 return channel_ids_.size(); |
287 } | 291 } |
288 | 292 |
289 void DefaultChannelIDStore::SetForceKeepSessionState() { | 293 void DefaultChannelIDStore::SetForceKeepSessionState() { |
290 DCHECK(CalledOnValidThread()); | 294 DCHECK(CalledOnValidThread()); |
291 InitIfNecessary(); | 295 InitIfNecessary(); |
292 | 296 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 437 |
434 bool DefaultChannelIDStore::IsEphemeral() { | 438 bool DefaultChannelIDStore::IsEphemeral() { |
435 return !store_; | 439 return !store_; |
436 } | 440 } |
437 | 441 |
438 DefaultChannelIDStore::PersistentStore::PersistentStore() {} | 442 DefaultChannelIDStore::PersistentStore::PersistentStore() {} |
439 | 443 |
440 DefaultChannelIDStore::PersistentStore::~PersistentStore() {} | 444 DefaultChannelIDStore::PersistentStore::~PersistentStore() {} |
441 | 445 |
442 } // namespace net | 446 } // namespace net |
OLD | NEW |