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

Side by Side Diff: chrome/browser/ui/webui/options/cookies_view_handler.cc

Issue 124183002: Implement delete methods for the various CannedBrowsingDataHelpers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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 | « chrome/browser/content_settings/local_shared_objects_container.cc ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/options/cookies_view_handler.h" 5 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 content::IndexedDBContext* indexed_db_context = 187 content::IndexedDBContext* indexed_db_context =
188 storage_partition->GetIndexedDBContext(); 188 storage_partition->GetIndexedDBContext();
189 fileapi::FileSystemContext* file_system_context = 189 fileapi::FileSystemContext* file_system_context =
190 storage_partition->GetFileSystemContext(); 190 storage_partition->GetFileSystemContext();
191 LocalDataContainer* container = new LocalDataContainer( 191 LocalDataContainer* container = new LocalDataContainer(
192 new BrowsingDataCookieHelper(profile->GetRequestContext()), 192 new BrowsingDataCookieHelper(profile->GetRequestContext()),
193 new BrowsingDataDatabaseHelper(profile), 193 new BrowsingDataDatabaseHelper(profile),
194 new BrowsingDataLocalStorageHelper(profile), 194 new BrowsingDataLocalStorageHelper(profile),
195 NULL, 195 NULL,
196 new BrowsingDataAppCacheHelper(profile), 196 new BrowsingDataAppCacheHelper(profile),
197 BrowsingDataIndexedDBHelper::Create(indexed_db_context), 197 new BrowsingDataIndexedDBHelper(indexed_db_context),
198 BrowsingDataFileSystemHelper::Create(file_system_context), 198 BrowsingDataFileSystemHelper::Create(file_system_context),
199 BrowsingDataQuotaHelper::Create(profile), 199 BrowsingDataQuotaHelper::Create(profile),
200 BrowsingDataServerBoundCertHelper::Create(profile), 200 BrowsingDataServerBoundCertHelper::Create(profile),
201 BrowsingDataFlashLSOHelper::Create(profile)); 201 BrowsingDataFlashLSOHelper::Create(profile));
202 cookies_tree_model_.reset( 202 cookies_tree_model_.reset(
203 new CookiesTreeModel(container, 203 new CookiesTreeModel(container,
204 profile->GetExtensionSpecialStoragePolicy(), 204 profile->GetExtensionSpecialStoragePolicy(),
205 false)); 205 false));
206 cookies_tree_model_->AddCookiesTreeObserver(this); 206 cookies_tree_model_->AddCookiesTreeObserver(this);
207 } 207 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args); 262 web_ui()->CallJavascriptFunction("CookiesView.loadChildren", args);
263 } 263 }
264 264
265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) { 265 void CookiesViewHandler::ReloadCookies(const base::ListValue* args) {
266 cookies_tree_model_.reset(); 266 cookies_tree_model_.reset();
267 267
268 EnsureCookiesTreeModelCreated(); 268 EnsureCookiesTreeModelCreated();
269 } 269 }
270 270
271 } // namespace options 271 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/local_shared_objects_container.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698