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

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: More compilation error fixes. 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 #include <set>
6
7 #include "build/build_config.h"
8 #include "content/public/browser/browsing_data_types.h"
9
10 #ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
11 #define CHROME_BROWSER_BROWSING_DATA_CHROME_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
46 // The following flag is used only in tests. In normal usage, hosted app
47 // data is controlled by the REMOVE_COOKIES flag, applied to the
48 // protected-web origin.
49 extern const content::BrowsingDataType kBrowsingDataTypeHostedAppDataTestOnly;
50
51 ////////////////////////////////////////////////////////////////////////////////
52 // Group datatypes.
53
54 // "Site data" includes cookies, appcache, file systems, indexedDBs, local
55 // storage, webSQL, service workers, cache storage, plugin data, web app
56 // data (on Android) and statistics about passwords.
57 extern const std::set<const content::BrowsingDataType*>&
58 kBrowsingDataTypeSetSiteData;
59
60 // Datatypes protected by Important Sites.
61 extern const std::set<const content::BrowsingDataType*>&
62 kBrowsingDataTypeSetImportantSites;
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 extern const std::set<const content::BrowsingDataType*>&
68 kBrowsingDataTypeSetAll;
69
70 // Includes all available remove options. Meant to be used when the Profile
71 // is scheduled to be deleted, and all possible data should be wiped from
72 // disk as soon as possible.
73 extern const std::set<const content::BrowsingDataType*>&
74 kBrowsingDataTypeSetWipeProfile;
75
76 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698