OLD | NEW |
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 // Defines the Chrome Extensions BrowsingData API functions, which entail | 5 // Defines the Chrome Extensions BrowsingData API functions, which entail |
6 // clearing browsing data, and clearing the browser's cache (which, let's be | 6 // clearing browsing data, and clearing the browser's cache (which, let's be |
7 // honest, are the same thing), as specified in the extension API JSON. | 7 // honest, are the same thing), as specified in the extension API JSON. |
8 | 8 |
9 #ifndef CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ | 9 #ifndef CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ |
10 #define CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ | 10 #define CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual bool RunImpl() OVERRIDE; | 60 virtual bool RunImpl() OVERRIDE; |
61 | 61 |
62 protected: | 62 protected: |
63 virtual ~BrowsingDataSettingsFunction() {} | 63 virtual ~BrowsingDataSettingsFunction() {} |
64 | 64 |
65 private: | 65 private: |
66 // Sets a boolean value in the |selected_dict| with the |data_type| as a key, | 66 // Sets a boolean value in the |selected_dict| with the |data_type| as a key, |
67 // indicating whether the data type is both selected and permitted to be | 67 // indicating whether the data type is both selected and permitted to be |
68 // removed; and a value in the |permitted_dict| with the |data_type| as a | 68 // removed; and a value in the |permitted_dict| with the |data_type| as a |
69 // key, indicating only whether the data type is permitted to be removed. | 69 // key, indicating only whether the data type is permitted to be removed. |
70 void SetDetails(DictionaryValue* selected_dict, | 70 void SetDetails(base::DictionaryValue* selected_dict, |
71 DictionaryValue* permitted_dict, | 71 base::DictionaryValue* permitted_dict, |
72 const char* data_type, | 72 const char* data_type, |
73 bool is_selected); | 73 bool is_selected); |
74 }; | 74 }; |
75 | 75 |
76 // This serves as a base class from which the browsing data API removal | 76 // This serves as a base class from which the browsing data API removal |
77 // functions will inherit. Each needs to be an observer of BrowsingDataRemover | 77 // functions will inherit. Each needs to be an observer of BrowsingDataRemover |
78 // events, and each will handle those events in the same way (by calling the | 78 // events, and each will handle those events in the same way (by calling the |
79 // passed-in callback function). | 79 // passed-in callback function). |
80 // | 80 // |
81 // Each child class must implement GetRemovalMask(), which returns the bitmask | 81 // Each child class must implement GetRemovalMask(), which returns the bitmask |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 BROWSINGDATA_REMOVEWEBSQL) | 263 BROWSINGDATA_REMOVEWEBSQL) |
264 | 264 |
265 protected: | 265 protected: |
266 virtual ~RemoveWebSQLFunction() {} | 266 virtual ~RemoveWebSQLFunction() {} |
267 | 267 |
268 // BrowsingDataRemoveFunction: | 268 // BrowsingDataRemoveFunction: |
269 virtual int GetRemovalMask() OVERRIDE; | 269 virtual int GetRemovalMask() OVERRIDE; |
270 }; | 270 }; |
271 | 271 |
272 #endif // CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ | 272 #endif // CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ |
OLD | NEW |