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

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

Issue 2637043002: Move plugins to ChromeBrowsingDataRemoverDelegate. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover_impl.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <memory> 8 #include <memory>
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 25 matching lines...) Expand all
36 // remover->RemoveAndReply(base::Time(), base::Time::Max(), 36 // remover->RemoveAndReply(base::Time(), base::Time::Max(),
37 // REMOVE_COOKIES, ALL, this); 37 // REMOVE_COOKIES, ALL, this);
38 // } 38 // }
39 // 39 //
40 // void OnBrowsingDataRemoverDone() { 40 // void OnBrowsingDataRemoverDone() {
41 // LOG(INFO) << "Cookies were deleted."; 41 // LOG(INFO) << "Cookies were deleted.";
42 // } 42 // }
43 // } 43 // }
44 // 44 //
45 //////////////////////////////////////////////////////////////////////////////// 45 ////////////////////////////////////////////////////////////////////////////////
46 //
47 // TODO(crbug.com/668114): BrowsingDataRemover does not currently support plugin
48 // data deletion. Use PluginDataRemover instead.
46 class BrowsingDataRemover { 49 class BrowsingDataRemover {
47 public: 50 public:
48 // Mask used for Remove. 51 // Mask used for Remove.
49 enum RemoveDataMask { 52 enum RemoveDataMask {
50 REMOVE_APPCACHE = 1 << 0, 53 REMOVE_APPCACHE = 1 << 0,
51 REMOVE_CACHE = 1 << 1, 54 REMOVE_CACHE = 1 << 1,
52 REMOVE_COOKIES = 1 << 2, 55 REMOVE_COOKIES = 1 << 2,
53 REMOVE_DOWNLOADS = 1 << 3, 56 REMOVE_DOWNLOADS = 1 << 3,
54 REMOVE_FILE_SYSTEMS = 1 << 4, 57 REMOVE_FILE_SYSTEMS = 1 << 4,
55 REMOVE_FORM_DATA = 1 << 5, 58 REMOVE_FORM_DATA = 1 << 5,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, 199 // consider returning them in OnBrowsingDataRemoverDone() callback. If not,
197 // consider simplifying this interface by removing these methods and changing 200 // consider simplifying this interface by removing these methods and changing
198 // the tests to record the parameters using GMock instead. 201 // the tests to record the parameters using GMock instead.
199 virtual const base::Time& GetLastUsedBeginTime() = 0; 202 virtual const base::Time& GetLastUsedBeginTime() = 0;
200 virtual const base::Time& GetLastUsedEndTime() = 0; 203 virtual const base::Time& GetLastUsedEndTime() = 0;
201 virtual int GetLastUsedRemovalMask() = 0; 204 virtual int GetLastUsedRemovalMask() = 0;
202 virtual int GetLastUsedOriginTypeMask() = 0; 205 virtual int GetLastUsedOriginTypeMask() = 0;
203 }; 206 };
204 207
205 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 208 #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_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698