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

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

Issue 10522002: `chrome.browsingData` extension API can now remove data from protected origins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
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_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 REMOVE_SERVER_BOUND_CERTS 86 REMOVE_SERVER_BOUND_CERTS
87 }; 87 };
88 88
89 // When BrowsingDataRemover successfully removes data, a notification of type 89 // When BrowsingDataRemover successfully removes data, a notification of type
90 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of 90 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of
91 // this type. 91 // this type.
92 struct NotificationDetails { 92 struct NotificationDetails {
93 NotificationDetails(); 93 NotificationDetails();
94 NotificationDetails(const NotificationDetails& details); 94 NotificationDetails(const NotificationDetails& details);
95 NotificationDetails(base::Time removal_begin, 95 NotificationDetails(base::Time removal_begin,
96 int removal_mask); 96 int removal_mask,
97 int origin_set_mask);
97 ~NotificationDetails(); 98 ~NotificationDetails();
98 99
99 // The beginning of the removal time range. 100 // The beginning of the removal time range.
100 base::Time removal_begin; 101 base::Time removal_begin;
101 102
102 // The removal mask (see the RemoveDataMask enum for details) 103 // The removal mask (see the RemoveDataMask enum for details).
103 int removal_mask; 104 int removal_mask;
105
106 // The origin set mask (see BrowsingDataHelper::OriginSetMask for details).
107 int origin_set_mask;
104 }; 108 };
105 109
106 // Observer is notified when the removal is done. Done means keywords have 110 // Observer is notified when the removal is done. Done means keywords have
107 // been deleted, cache cleared and all other tasks scheduled. 111 // been deleted, cache cleared and all other tasks scheduled.
108 class Observer { 112 class Observer {
109 public: 113 public:
110 virtual void OnBrowsingDataRemoverDone() = 0; 114 virtual void OnBrowsingDataRemoverDone() = 0;
111 115
112 protected: 116 protected:
113 virtual ~Observer() {} 117 virtual ~Observer() {}
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 354
351 ObserverList<Observer> observer_list_; 355 ObserverList<Observer> observer_list_;
352 356
353 // Used if we need to clear history. 357 // Used if we need to clear history.
354 CancelableRequestConsumer request_consumer_; 358 CancelableRequestConsumer request_consumer_;
355 359
356 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 360 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
357 }; 361 };
358 362
359 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ 363 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698