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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_appcache_helper.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
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/browsing_data/browsing_data_appcache_helper.h" 5 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "chrome/browser/browsing_data/browsing_data_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_helper.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const BrowsingDataAppCacheHelper::OriginAppCacheInfoMap& 146 const BrowsingDataAppCacheHelper::OriginAppCacheInfoMap&
147 CannedBrowsingDataAppCacheHelper::GetOriginAppCacheInfoMap() const { 147 CannedBrowsingDataAppCacheHelper::GetOriginAppCacheInfoMap() const {
148 return info_collection_->infos_by_origin; 148 return info_collection_->infos_by_origin;
149 } 149 }
150 150
151 void CannedBrowsingDataAppCacheHelper::StartFetching( 151 void CannedBrowsingDataAppCacheHelper::StartFetching(
152 const base::Closure& completion_callback) { 152 const base::Closure& completion_callback) {
153 completion_callback.Run(); 153 completion_callback.Run();
154 } 154 }
155 155
156 void CannedBrowsingDataAppCacheHelper::DeleteAppCacheGroup(
157 const GURL& manifest_url) {
158 info_collection_->infos_by_origin.erase(manifest_url.GetOrigin());
159 BrowsingDataAppCacheHelper::DeleteAppCacheGroup(manifest_url);
160 }
161
156 CannedBrowsingDataAppCacheHelper::~CannedBrowsingDataAppCacheHelper() {} 162 CannedBrowsingDataAppCacheHelper::~CannedBrowsingDataAppCacheHelper() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698