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

Side by Side Diff: components/browsing_data/storage_partition_http_cache_data_remover.cc

Issue 1465363002: [Storage] Android - ManageSpace UI, Important Origins, and CBD Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/browsing_data/storage_partition_http_cache_data_remover.h" 5 #include "components/browsing_data/storage_partition_http_cache_data_remover.h"
6 6
7 #include "components/browsing_data/conditional_cache_deletion_helper.h" 7 #include "components/browsing_data/conditional_cache_deletion_helper.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/storage_partition.h" 9 #include "content/public/browser/storage_partition.h"
10 #include "net/base/sdch_manager.h" 10 #include "net/base/sdch_manager.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 if (!url_predicate_.is_null()) { 180 if (!url_predicate_.is_null()) {
181 (new ConditionalCacheDeletionHelper( 181 (new ConditionalCacheDeletionHelper(
182 cache_, 182 cache_,
183 ConditionalCacheDeletionHelper::CreateURLAndTimeCondition( 183 ConditionalCacheDeletionHelper::CreateURLAndTimeCondition(
184 url_predicate_, 184 url_predicate_,
185 delete_begin_, 185 delete_begin_,
186 delete_end_)))->DeleteAndDestroySelfWhenFinished( 186 delete_end_)))->DeleteAndDestroySelfWhenFinished(
187 base::Bind( 187 base::Bind(
188 &StoragePartitionHttpCacheDataRemover::DoClearCache, 188 &StoragePartitionHttpCacheDataRemover::DoClearCache,
189 base::Unretained(this))); 189 base::Unretained(this)));
190 rv = net::ERR_IO_PENDING;
msramek 2016/05/17 14:02:24 Thanks for fixing this! But it should be: rv = (n
dmurph 2016/05/18 23:28:00 Done.
190 } else if (delete_begin_.is_null() && delete_end_.is_max()) { 191 } else if (delete_begin_.is_null() && delete_end_.is_max()) {
191 rv = cache_->DoomAllEntries(base::Bind( 192 rv = cache_->DoomAllEntries(base::Bind(
192 &StoragePartitionHttpCacheDataRemover::DoClearCache, 193 &StoragePartitionHttpCacheDataRemover::DoClearCache,
193 base::Unretained(this))); 194 base::Unretained(this)));
194 } else { 195 } else {
195 rv = cache_->DoomEntriesBetween( 196 rv = cache_->DoomEntriesBetween(
196 delete_begin_, delete_end_, 197 delete_begin_, delete_end_,
197 base::Bind( 198 base::Bind(
198 &StoragePartitionHttpCacheDataRemover::DoClearCache, 199 &StoragePartitionHttpCacheDataRemover::DoClearCache,
199 base::Unretained(this))); 200 base::Unretained(this)));
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 default: { 299 default: {
299 NOTREACHED() << "bad state"; 300 NOTREACHED() << "bad state";
300 next_cache_state_ = STATE_NONE; // Stop looping. 301 next_cache_state_ = STATE_NONE; // Stop looping.
301 return; 302 return;
302 } 303 }
303 } 304 }
304 } 305 }
305 } 306 }
306 307
307 } // namespace browsing_data 308 } // namespace browsing_data
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698