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

Side by Side Diff: chrome/browser/tab_contents/tab_specific_content_settings.cc

Issue 6684002: Replace the cookie monster on navigations instead of reusing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/tab_contents/tab_specific_content_settings.h" 5 #include "chrome/browser/tab_contents/tab_specific_content_settings.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/browsing_data_appcache_helper.h" 8 #include "chrome/browser/browsing_data_appcache_helper.h"
9 #include "chrome/browser/browsing_data_database_helper.h" 9 #include "chrome/browser/browsing_data_database_helper.h"
10 #include "chrome/browser/browsing_data_indexed_db_helper.h" 10 #include "chrome/browser/browsing_data_indexed_db_helper.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), 294 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)),
295 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { 295 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) {
296 } 296 }
297 297
298 TabSpecificContentSettings::LocalSharedObjectsContainer:: 298 TabSpecificContentSettings::LocalSharedObjectsContainer::
299 ~LocalSharedObjectsContainer() { 299 ~LocalSharedObjectsContainer() {
300 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); 300 cookies_->ValidateMap(prerender::PrerenderManager::GetMode());
301 } 301 }
302 302
303 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { 303 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() {
304 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); 304 cookies_ = new net::CookieMonster(NULL, NULL);
305 cookies_->DeleteAll(false);
306 cookies_->ValidateMap(prerender::PrerenderManager::GetMode());
307 appcaches_->Reset(); 305 appcaches_->Reset();
308 databases_->Reset(); 306 databases_->Reset();
309 indexed_dbs_->Reset(); 307 indexed_dbs_->Reset();
310 local_storages_->Reset(); 308 local_storages_->Reset();
311 session_storages_->Reset(); 309 session_storages_->Reset();
312 } 310 }
313 311
314 CookiesTreeModel* 312 CookiesTreeModel*
315 TabSpecificContentSettings::LocalSharedObjectsContainer::GetCookiesTreeModel() { 313 TabSpecificContentSettings::LocalSharedObjectsContainer::GetCookiesTreeModel() {
316 return new CookiesTreeModel(cookies_, 314 return new CookiesTreeModel(cookies_,
317 databases_, 315 databases_,
318 local_storages_, 316 local_storages_,
319 session_storages_, 317 session_storages_,
320 appcaches_, 318 appcaches_,
321 indexed_dbs_); 319 indexed_dbs_);
322 } 320 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698