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

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

Issue 524026: Adds "Delete Local Storage" option to "Clear Browsing Data" for Windows and G... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/cancelable_request.h" 10 #include "chrome/browser/cancelable_request.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Mask used for Remove. 29 // Mask used for Remove.
30 30
31 // In addition to visits, this removes keywords and the last session. 31 // In addition to visits, this removes keywords and the last session.
32 static const int REMOVE_HISTORY = 1 << 0; 32 static const int REMOVE_HISTORY = 1 << 0;
33 static const int REMOVE_DOWNLOADS = 1 << 1; 33 static const int REMOVE_DOWNLOADS = 1 << 1;
34 static const int REMOVE_COOKIES = 1 << 2; 34 static const int REMOVE_COOKIES = 1 << 2;
35 static const int REMOVE_PASSWORDS = 1 << 3; 35 static const int REMOVE_PASSWORDS = 1 << 3;
36 static const int REMOVE_FORM_DATA = 1 << 4; 36 static const int REMOVE_FORM_DATA = 1 << 4;
37 static const int REMOVE_CACHE = 1 << 5; 37 static const int REMOVE_CACHE = 1 << 5;
38 static const int REMOVE_LOCAL_STORAGE = 1 << 6;
38 39
39 // Observer is notified when the removal is done. Done means keywords have 40 // Observer is notified when the removal is done. Done means keywords have
40 // been deleted, cache cleared and all other tasks scheduled. 41 // been deleted, cache cleared and all other tasks scheduled.
41 class Observer { 42 class Observer {
42 public: 43 public:
43 virtual void OnBrowsingDataRemoverDone() = 0; 44 virtual void OnBrowsingDataRemoverDone() = 0;
44 45
45 protected: 46 protected:
46 virtual ~Observer() {} 47 virtual ~Observer() {}
47 }; 48 };
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 126
126 ObserverList<Observer> observer_list_; 127 ObserverList<Observer> observer_list_;
127 128
128 // Used if we need to clear history. 129 // Used if we need to clear history.
129 CancelableRequestConsumer request_consumer_; 130 CancelableRequestConsumer request_consumer_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 132 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
132 }; 133 };
133 134
134 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 135 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698