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

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

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/default_channel_id_store.h ('k') | net/ssl/default_channel_id_store_unittest.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 #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
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
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
OLDNEW
« no previous file with comments | « net/ssl/default_channel_id_store.h ('k') | net/ssl/default_channel_id_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698