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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 10928197: Browsing data: Clear the "infinite cache" simulation data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | chrome/browser/browsing_data/browsing_data_remover.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 (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 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // 166 //
167 // TODO(mkwst): See http://crbug.com/113621 167 // TODO(mkwst): See http://crbug.com/113621
168 friend class BrowsingDataRemoverTest; 168 friend class BrowsingDataRemoverTest;
169 169
170 enum CacheState { 170 enum CacheState {
171 STATE_NONE, 171 STATE_NONE,
172 STATE_CREATE_MAIN, 172 STATE_CREATE_MAIN,
173 STATE_CREATE_MEDIA, 173 STATE_CREATE_MEDIA,
174 STATE_DELETE_MAIN, 174 STATE_DELETE_MAIN,
175 STATE_DELETE_MEDIA, 175 STATE_DELETE_MEDIA,
176 STATE_DELETE_EXPERIMENT,
176 STATE_DONE 177 STATE_DONE
177 }; 178 };
178 179
179 // Calculate the begin time for the deletion range specified by |time_period|. 180 // Calculate the begin time for the deletion range specified by |time_period|.
180 static base::Time CalculateBeginDeleteTime(TimePeriod time_period); 181 static base::Time CalculateBeginDeleteTime(TimePeriod time_period);
181 182
182 // Setter for |is_removing_|; DCHECKs that we can only start removing if we're 183 // Setter for |is_removing_|; DCHECKs that we can only start removing if we're
183 // not already removing, and vice-versa. 184 // not already removing, and vice-versa.
184 static void set_removing(bool is_removing); 185 static void set_removing(bool is_removing);
185 186
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 382
382 ObserverList<Observer> observer_list_; 383 ObserverList<Observer> observer_list_;
383 384
384 // Used if we need to clear history. 385 // Used if we need to clear history.
385 CancelableRequestConsumer request_consumer_; 386 CancelableRequestConsumer request_consumer_;
386 387
387 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 388 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
388 }; 389 };
389 390
390 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 391 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698