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

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

Issue 8008012: chrome.clear: Increasing granularity of public API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RunFunctionWithoutResult Created 9 years 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/extensions/extension_clear_api.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_REMOVER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void RemoveObserver(Observer* observer); 121 void RemoveObserver(Observer* observer);
122 122
123 // Called when history deletion is done. 123 // Called when history deletion is done.
124 void OnHistoryDeletionDone(); 124 void OnHistoryDeletionDone();
125 125
126 static bool is_removing() { return removing_; } 126 static bool is_removing() { return removing_; }
127 127
128 private: 128 private:
129 // The clear API needs to be able to toggle removing_ in order to test that 129 // The clear API needs to be able to toggle removing_ in order to test that
130 // only one BrowsingDataRemover instance can be called at a time. 130 // only one BrowsingDataRemover instance can be called at a time.
131 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ClearOneAtATime); 131 FRIEND_TEST_ALL_PREFIXES(ExtensionClearTest, OneAtATime);
132 132
133 enum CacheState { 133 enum CacheState {
134 STATE_NONE, 134 STATE_NONE,
135 STATE_CREATE_MAIN, 135 STATE_CREATE_MAIN,
136 STATE_CREATE_MEDIA, 136 STATE_CREATE_MEDIA,
137 STATE_DELETE_MAIN, 137 STATE_DELETE_MAIN,
138 STATE_DELETE_MEDIA, 138 STATE_DELETE_MEDIA,
139 STATE_DONE 139 STATE_DONE
140 }; 140 };
141 141
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 ObserverList<Observer> observer_list_; 278 ObserverList<Observer> observer_list_;
279 279
280 // Used if we need to clear history. 280 // Used if we need to clear history.
281 CancelableRequestConsumer request_consumer_; 281 CancelableRequestConsumer request_consumer_;
282 282
283 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 283 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
284 }; 284 };
285 285
286 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 286 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_clear_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698