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

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: Rebasing after 2 months (ugh). Extension test. Fiddling. 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void RemoveObserver(Observer* observer); 109 void RemoveObserver(Observer* observer);
110 110
111 // Called when history deletion is done. 111 // Called when history deletion is done.
112 void OnHistoryDeletionDone(); 112 void OnHistoryDeletionDone();
113 113
114 static bool is_removing() { return removing_; } 114 static bool is_removing() { return removing_; }
115 115
116 private: 116 private:
117 // The clear API needs to be able to toggle removing_ in order to test that 117 // The clear API needs to be able to toggle removing_ in order to test that
118 // only one BrowsingDataRemover instance can be called at a time. 118 // only one BrowsingDataRemover instance can be called at a time.
119 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ClearOneAtATime); 119 FRIEND_TEST_ALL_PREFIXES(ExtensionClearTest, OneAtATime);
120 120
121 enum CacheState { 121 enum CacheState {
122 STATE_NONE, 122 STATE_NONE,
123 STATE_CREATE_MAIN, 123 STATE_CREATE_MAIN,
124 STATE_CREATE_MEDIA, 124 STATE_CREATE_MEDIA,
125 STATE_DELETE_MAIN, 125 STATE_DELETE_MAIN,
126 STATE_DELETE_MEDIA, 126 STATE_DELETE_MEDIA,
127 STATE_DONE 127 STATE_DONE
128 }; 128 };
129 129
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 ObserverList<Observer> observer_list_; 266 ObserverList<Observer> observer_list_;
267 267
268 // Used if we need to clear history. 268 // Used if we need to clear history.
269 CancelableRequestConsumer request_consumer_; 269 CancelableRequestConsumer request_consumer_;
270 270
271 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 271 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
272 }; 272 };
273 273
274 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 274 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_clear_api.h » ('j') | chrome/chrome_tests.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698