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

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

Issue 2697123004: Convert RemoveDataMask from enum to pointers and split it between content and embedder (Closed)
Patch Set: Android compilation 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
7
8 #include <set>
9
10 #include "build/build_config.h"
11 #include "content/public/browser/browsing_data_types.h"
12
13 ////////////////////////////////////////////////////////////////////////////////
14 // Forward platform datatypes into the default namespace.
15 using content::kBrowsingDataTypeAppCache;
16 using content::kBrowsingDataTypeFileSystems;
17 using content::kBrowsingDataTypeIndexedDB;
18 using content::kBrowsingDataTypeLocalStorage;
19 using content::kBrowsingDataTypeWebSQL;
20 using content::kBrowsingDataTypeServiceWorkers;
21 using content::kBrowsingDataTypeCacheStorage;
22 using content::kBrowsingDataTypeStorage;
23 using content::kBrowsingDataTypeCookies;
24 using content::kBrowsingDataTypeChannelIDs;
25 using content::kBrowsingDataTypeCache;
26 using content::kBrowsingDataTypeDownloads;
27 using content::kBrowsingDataTypeMediaLicenses;
28
29 // REMOVE_NOCHECKS intentionally does not check if the browser context is
30 // prohibited from deleting history or downloads.
31 using content::kBrowsingDataTypeNoChecks;
32
33 ////////////////////////////////////////////////////////////////////////////////
34 // Chrome-specific datatypes.
35
36 extern const content::BrowsingDataType kBrowsingDataTypeHistory;
37 extern const content::BrowsingDataType kBrowsingDataTypeFormData;
38 extern const content::BrowsingDataType kBrowsingDataTypePasswords;
39 extern const content::BrowsingDataType kBrowsingDataTypePluginData;
40 #if defined(OS_ANDROID)
41 extern const content::BrowsingDataType kBrowsingDataTypeWebAppData;
42 #endif
43 extern const content::BrowsingDataType kBrowsingDataTypeSiteUsageData;
44 extern const content::BrowsingDataType kBrowsingDataTypeDurablePermission;
45 extern const content::BrowsingDataType kBrowsingDataTypeExternalProtocolData;
46
47 // The following flag is used only in tests. In normal usage, hosted app
48 // data is controlled by the REMOVE_COOKIES flag, applied to the
49 // protected-web origin.
50 extern const content::BrowsingDataType kBrowsingDataTypeHostedAppDataTestOnly;
51
52 ////////////////////////////////////////////////////////////////////////////////
53 // Group datatypes.
54
55 // "Site data" includes cookies, appcache, file systems, indexedDBs, local
56 // storage, webSQL, service workers, cache storage, plugin data, web app
57 // data (on Android) and statistics about passwords.
58 const std::set<const content::BrowsingDataType*>& BrowsingDataTypeSetSiteData();
59
60 // Datatypes protected by Important Sites.
61 const std::set<const content::BrowsingDataType*>&
62 BrowsingDataTypeSetImportantSites();
63
64 // Includes all the available remove options. Meant to be used by clients
65 // that wish to wipe as much data as possible from a Profile, to make it
66 // look like a new Profile.
67 const std::set<const content::BrowsingDataType*>& BrowsingDataTypeSetAll();
68
69 // Includes all available remove options. Meant to be used when the Profile
70 // is scheduled to be deleted, and all possible data should be wiped from
71 // disk as soon as possible.
72 const std::set<const content::BrowsingDataType*>&
73 BrowsingDataTypeSetWipeProfile();
74
75 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698