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

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

Issue 2664253006: Clears out external protocol data when cookies and site data is cleared. (Closed)
Patch Set: a Created 3 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
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_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 22 matching lines...) Expand all
33 extern const char kFileSystemsKey[]; 33 extern const char kFileSystemsKey[];
34 extern const char kFormDataKey[]; 34 extern const char kFormDataKey[];
35 extern const char kHistoryKey[]; 35 extern const char kHistoryKey[];
36 extern const char kIndexedDBKey[]; 36 extern const char kIndexedDBKey[];
37 extern const char kPluginDataKey[]; 37 extern const char kPluginDataKey[];
38 extern const char kLocalStorageKey[]; 38 extern const char kLocalStorageKey[];
39 extern const char kPasswordsKey[]; 39 extern const char kPasswordsKey[];
40 extern const char kServiceWorkersKey[]; 40 extern const char kServiceWorkersKey[];
41 extern const char kCacheStorageKey[]; 41 extern const char kCacheStorageKey[];
42 extern const char kWebSQLKey[]; 42 extern const char kWebSQLKey[];
43 extern const char kExternalProtocolKey[];
43 44
44 // Option keys. 45 // Option keys.
45 extern const char kExtensionsKey[]; 46 extern const char kExtensionsKey[];
46 extern const char kOriginTypesKey[]; 47 extern const char kOriginTypesKey[];
47 extern const char kProtectedWebKey[]; 48 extern const char kProtectedWebKey[];
48 extern const char kSinceKey[]; 49 extern const char kSinceKey[];
49 extern const char kUnprotectedWebKey[]; 50 extern const char kUnprotectedWebKey[];
50 51
51 // Errors! 52 // Errors!
52 extern const char kBadDataTypeDetails[]; 53 extern const char kBadDataTypeDetails[];
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 DECLARE_EXTENSION_FUNCTION("browsingData.removeWebSQL", 303 DECLARE_EXTENSION_FUNCTION("browsingData.removeWebSQL",
303 BROWSINGDATA_REMOVEWEBSQL) 304 BROWSINGDATA_REMOVEWEBSQL)
304 305
305 protected: 306 protected:
306 ~BrowsingDataRemoveWebSQLFunction() override {} 307 ~BrowsingDataRemoveWebSQLFunction() override {}
307 308
308 // BrowsingDataRemoverFunction: 309 // BrowsingDataRemoverFunction:
309 bool GetRemovalMask(int* removal_mask) override; 310 bool GetRemovalMask(int* removal_mask) override;
310 }; 311 };
311 312
313 class BrowsingDataRemoveExternalProtocolDataFunction
Devlin 2017/02/15 15:56:46 I don't see anywhere in the bug or CL description
ramyasharma 2017/02/16 03:29:47 This API was changed because test suite browsing_d
314 : public BrowsingDataRemoverFunction {
315 public:
316 DECLARE_EXTENSION_FUNCTION("browsingData.removeExternalProtocolData",
317 BROWSINGDATA_REMOVEEXTERNALPROTOCOLDATA)
318
319 protected:
320 ~BrowsingDataRemoveExternalProtocolDataFunction() override {}
321
322 // BrowsingDataRemoverFunction:
323 bool GetRemovalMask(int* removal_mask) override;
324 };
325
312 #endif // CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_ 326 #endif // CHROME_BROWSER_EXTENSIONS_API_BROWSING_DATA_BROWSING_DATA_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698