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

Side by Side Diff: chrome/browser/extensions/api/browsingdata/browsing_data_api.h

Issue 9424036: Move `browsingData` extension API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebuilt docs. Created 8 years, 10 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 | « no previous file | chrome/browser/extensions/api/browsingdata/browsing_data_api.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) 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_EXTENSION_BROWSING_DATA_API_H_ 9 #ifndef CHROME_BROWSER_EXTENSIONS_API_BROWSINGDATA_BROWSING_DATA_API_H_
10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSING_DATA_API_H_ 10 #define CHROME_BROWSER_EXTENSIONS_API_BROWSINGDATA_BROWSING_DATA_API_H_
11 #pragma once 11 #pragma once
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "chrome/browser/browsing_data_remover.h" 15 #include "chrome/browser/browsing_data_remover.h"
16 #include "chrome/browser/extensions/extension_function.h" 16 #include "chrome/browser/extensions/extension_function.h"
17 17
18 class PluginPrefs; 18 class PluginPrefs;
19 19
20 namespace extension_browsing_data_api_constants { 20 namespace extension_browsing_data_api_constants {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 class RemoveAppCacheFunction : public BrowsingDataExtensionFunction { 78 class RemoveAppCacheFunction : public BrowsingDataExtensionFunction {
79 public: 79 public:
80 RemoveAppCacheFunction() {} 80 RemoveAppCacheFunction() {}
81 virtual ~RemoveAppCacheFunction() {} 81 virtual ~RemoveAppCacheFunction() {}
82 82
83 protected: 83 protected:
84 // BrowsingDataTypeExtensionFunction interface method. 84 // BrowsingDataTypeExtensionFunction interface method.
85 virtual int GetRemovalMask() const OVERRIDE; 85 virtual int GetRemovalMask() const OVERRIDE;
86 86
87 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeAppcache") 87 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeAppcache")
88 }; 88 };
89 89
90 class RemoveBrowsingDataFunction : public BrowsingDataExtensionFunction { 90 class RemoveBrowsingDataFunction : public BrowsingDataExtensionFunction {
91 public: 91 public:
92 RemoveBrowsingDataFunction() {} 92 RemoveBrowsingDataFunction() {}
93 virtual ~RemoveBrowsingDataFunction() {} 93 virtual ~RemoveBrowsingDataFunction() {}
94 94
95 protected: 95 protected:
96 // BrowsingDataExtensionFunction interface method. 96 // BrowsingDataExtensionFunction interface method.
97 virtual int GetRemovalMask() const OVERRIDE; 97 virtual int GetRemovalMask() const OVERRIDE;
98 98
99 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.remove") 99 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.remove")
100 }; 100 };
101 101
102 class RemoveCacheFunction : public BrowsingDataExtensionFunction { 102 class RemoveCacheFunction : public BrowsingDataExtensionFunction {
103 public: 103 public:
104 RemoveCacheFunction() {} 104 RemoveCacheFunction() {}
105 virtual ~RemoveCacheFunction() {} 105 virtual ~RemoveCacheFunction() {}
106 106
107 protected: 107 protected:
108 // BrowsingDataTypeExtensionFunction interface method. 108 // BrowsingDataTypeExtensionFunction interface method.
109 virtual int GetRemovalMask() const OVERRIDE; 109 virtual int GetRemovalMask() const OVERRIDE;
110 110
111 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeCache") 111 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeCache")
112 }; 112 };
113 113
114 class RemoveCookiesFunction : public BrowsingDataExtensionFunction { 114 class RemoveCookiesFunction : public BrowsingDataExtensionFunction {
115 public: 115 public:
116 RemoveCookiesFunction() {} 116 RemoveCookiesFunction() {}
117 virtual ~RemoveCookiesFunction() {} 117 virtual ~RemoveCookiesFunction() {}
118 118
119 protected: 119 protected:
120 // BrowsingDataTypeExtensionFunction interface method. 120 // BrowsingDataTypeExtensionFunction interface method.
121 virtual int GetRemovalMask() const OVERRIDE; 121 virtual int GetRemovalMask() const OVERRIDE;
122 122
123 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeCookies") 123 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeCookies")
124 }; 124 };
125 125
126 class RemoveDownloadsFunction : public BrowsingDataExtensionFunction { 126 class RemoveDownloadsFunction : public BrowsingDataExtensionFunction {
127 public: 127 public:
128 RemoveDownloadsFunction() {} 128 RemoveDownloadsFunction() {}
129 virtual ~RemoveDownloadsFunction() {} 129 virtual ~RemoveDownloadsFunction() {}
130 130
131 protected: 131 protected:
132 // BrowsingDataTypeExtensionFunction interface method. 132 // BrowsingDataTypeExtensionFunction interface method.
133 virtual int GetRemovalMask() const OVERRIDE; 133 virtual int GetRemovalMask() const OVERRIDE;
134 134
135 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeDownloads") 135 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeDownloads")
136 }; 136 };
137 137
138 class RemoveFileSystemsFunction : public BrowsingDataExtensionFunction { 138 class RemoveFileSystemsFunction : public BrowsingDataExtensionFunction {
139 public: 139 public:
140 RemoveFileSystemsFunction() {} 140 RemoveFileSystemsFunction() {}
141 virtual ~RemoveFileSystemsFunction() {} 141 virtual ~RemoveFileSystemsFunction() {}
142 142
143 protected: 143 protected:
144 // BrowsingDataTypeExtensionFunction interface method. 144 // BrowsingDataTypeExtensionFunction interface method.
145 virtual int GetRemovalMask() const OVERRIDE; 145 virtual int GetRemovalMask() const OVERRIDE;
146 146
147 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeFileSystems") 147 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeFileSystems")
148 }; 148 };
149 149
150 class RemoveFormDataFunction : public BrowsingDataExtensionFunction { 150 class RemoveFormDataFunction : public BrowsingDataExtensionFunction {
151 public: 151 public:
152 RemoveFormDataFunction() {} 152 RemoveFormDataFunction() {}
153 virtual ~RemoveFormDataFunction() {} 153 virtual ~RemoveFormDataFunction() {}
154 154
155 protected: 155 protected:
156 // BrowsingDataTypeExtensionFunction interface method. 156 // BrowsingDataTypeExtensionFunction interface method.
157 virtual int GetRemovalMask() const OVERRIDE; 157 virtual int GetRemovalMask() const OVERRIDE;
158 158
159 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeFormData") 159 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeFormData")
160 }; 160 };
161 161
162 class RemoveHistoryFunction : public BrowsingDataExtensionFunction { 162 class RemoveHistoryFunction : public BrowsingDataExtensionFunction {
163 public: 163 public:
164 RemoveHistoryFunction() {} 164 RemoveHistoryFunction() {}
165 virtual ~RemoveHistoryFunction() {} 165 virtual ~RemoveHistoryFunction() {}
166 166
167 protected: 167 protected:
168 // BrowsingDataTypeExtensionFunction interface method. 168 // BrowsingDataTypeExtensionFunction interface method.
169 virtual int GetRemovalMask() const OVERRIDE; 169 virtual int GetRemovalMask() const OVERRIDE;
170 170
171 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeHistory") 171 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeHistory")
172 }; 172 };
173 173
174 class RemoveIndexedDBFunction : public BrowsingDataExtensionFunction { 174 class RemoveIndexedDBFunction : public BrowsingDataExtensionFunction {
175 public: 175 public:
176 RemoveIndexedDBFunction() {} 176 RemoveIndexedDBFunction() {}
177 virtual ~RemoveIndexedDBFunction() {} 177 virtual ~RemoveIndexedDBFunction() {}
178 178
179 protected: 179 protected:
180 // BrowsingDataTypeExtensionFunction interface method. 180 // BrowsingDataTypeExtensionFunction interface method.
181 virtual int GetRemovalMask() const OVERRIDE; 181 virtual int GetRemovalMask() const OVERRIDE;
182 182
183 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeIndexedDB") 183 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeIndexedDB")
184 }; 184 };
185 185
186 class RemoveLocalStorageFunction : public BrowsingDataExtensionFunction { 186 class RemoveLocalStorageFunction : public BrowsingDataExtensionFunction {
187 public: 187 public:
188 RemoveLocalStorageFunction() {} 188 RemoveLocalStorageFunction() {}
189 virtual ~RemoveLocalStorageFunction() {} 189 virtual ~RemoveLocalStorageFunction() {}
190 190
191 protected: 191 protected:
192 // BrowsingDataTypeExtensionFunction interface method. 192 // BrowsingDataTypeExtensionFunction interface method.
193 virtual int GetRemovalMask() const OVERRIDE; 193 virtual int GetRemovalMask() const OVERRIDE;
194 194
195 DECLARE_EXTENSION_FUNCTION_NAME( 195 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeLocalStorage")
196 "experimental.browsingData.removeLocalStorage")
197 }; 196 };
198 197
199 class RemoveOriginBoundCertsFunction : public BrowsingDataExtensionFunction { 198 class RemoveOriginBoundCertsFunction : public BrowsingDataExtensionFunction {
200 public: 199 public:
201 RemoveOriginBoundCertsFunction() {} 200 RemoveOriginBoundCertsFunction() {}
202 virtual ~RemoveOriginBoundCertsFunction() {} 201 virtual ~RemoveOriginBoundCertsFunction() {}
203 202
204 protected: 203 protected:
205 // BrowsingDataTypeExtensionFunction interface method. 204 // BrowsingDataTypeExtensionFunction interface method.
206 virtual int GetRemovalMask() const OVERRIDE; 205 virtual int GetRemovalMask() const OVERRIDE;
207 206
208 DECLARE_EXTENSION_FUNCTION_NAME( 207 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeOriginBoundCertificates")
209 "experimental.browsingData.removeOriginBoundCertificates")
210 }; 208 };
211 209
212 class RemovePluginDataFunction : public BrowsingDataExtensionFunction { 210 class RemovePluginDataFunction : public BrowsingDataExtensionFunction {
213 public: 211 public:
214 RemovePluginDataFunction() {} 212 RemovePluginDataFunction() {}
215 virtual ~RemovePluginDataFunction() {} 213 virtual ~RemovePluginDataFunction() {}
216 214
217 protected: 215 protected:
218 // BrowsingDataTypeExtensionFunction interface method. 216 // BrowsingDataTypeExtensionFunction interface method.
219 virtual int GetRemovalMask() const OVERRIDE; 217 virtual int GetRemovalMask() const OVERRIDE;
220 218
221 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removePluginData") 219 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removePluginData")
222 }; 220 };
223 221
224 class RemovePasswordsFunction : public BrowsingDataExtensionFunction { 222 class RemovePasswordsFunction : public BrowsingDataExtensionFunction {
225 public: 223 public:
226 RemovePasswordsFunction() {} 224 RemovePasswordsFunction() {}
227 virtual ~RemovePasswordsFunction() {} 225 virtual ~RemovePasswordsFunction() {}
228 226
229 protected: 227 protected:
230 // BrowsingDataTypeExtensionFunction interface method. 228 // BrowsingDataTypeExtensionFunction interface method.
231 virtual int GetRemovalMask() const OVERRIDE; 229 virtual int GetRemovalMask() const OVERRIDE;
232 230
233 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removePasswords") 231 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removePasswords")
234 }; 232 };
235 233
236 class RemoveWebSQLFunction : public BrowsingDataExtensionFunction { 234 class RemoveWebSQLFunction : public BrowsingDataExtensionFunction {
237 public: 235 public:
238 RemoveWebSQLFunction() {} 236 RemoveWebSQLFunction() {}
239 virtual ~RemoveWebSQLFunction() {} 237 virtual ~RemoveWebSQLFunction() {}
240 238
241 protected: 239 protected:
242 // BrowsingDataTypeExtensionFunction interface method. 240 // BrowsingDataTypeExtensionFunction interface method.
243 virtual int GetRemovalMask() const OVERRIDE; 241 virtual int GetRemovalMask() const OVERRIDE;
244 242
245 DECLARE_EXTENSION_FUNCTION_NAME("experimental.browsingData.removeWebSQL") 243 DECLARE_EXTENSION_FUNCTION_NAME("browsingData.removeWebSQL")
246 }; 244 };
247 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSING_DATA_API_H_ 245 #endif // CHROME_BROWSER_EXTENSIONS_API_BROWSINGDATA_BROWSING_DATA_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/browsingdata/browsing_data_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698