Index: chrome/browser/browsing_data/chrome_browsing_data_types.h |
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_types.h b/chrome/browser/browsing_data/chrome_browsing_data_types.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9c418ea599ba2d376d67dce269bbffee9e281df8 |
--- /dev/null |
+++ b/chrome/browser/browsing_data/chrome_browsing_data_types.h |
@@ -0,0 +1,75 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_ |
+#define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_ |
+ |
+#include <set> |
+ |
+#include "build/build_config.h" |
+#include "content/public/browser/browsing_data_types.h" |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// Forward platform datatypes into the default namespace. |
+using content::kBrowsingDataTypeAppCache; |
+using content::kBrowsingDataTypeFileSystems; |
+using content::kBrowsingDataTypeIndexedDB; |
+using content::kBrowsingDataTypeLocalStorage; |
+using content::kBrowsingDataTypeWebSQL; |
+using content::kBrowsingDataTypeServiceWorkers; |
+using content::kBrowsingDataTypeCacheStorage; |
+using content::kBrowsingDataTypeStorage; |
+using content::kBrowsingDataTypeCookies; |
+using content::kBrowsingDataTypeChannelIDs; |
+using content::kBrowsingDataTypeCache; |
+using content::kBrowsingDataTypeDownloads; |
+using content::kBrowsingDataTypeMediaLicenses; |
+ |
+// REMOVE_NOCHECKS intentionally does not check if the browser context is |
+// prohibited from deleting history or downloads. |
+using content::kBrowsingDataTypeNoChecks; |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// Chrome-specific datatypes. |
+ |
+extern const content::BrowsingDataType kBrowsingDataTypeHistory; |
+extern const content::BrowsingDataType kBrowsingDataTypeFormData; |
+extern const content::BrowsingDataType kBrowsingDataTypePasswords; |
+extern const content::BrowsingDataType kBrowsingDataTypePluginData; |
+#if defined(OS_ANDROID) |
+extern const content::BrowsingDataType kBrowsingDataTypeWebAppData; |
+#endif |
+extern const content::BrowsingDataType kBrowsingDataTypeSiteUsageData; |
+extern const content::BrowsingDataType kBrowsingDataTypeDurablePermission; |
+extern const content::BrowsingDataType kBrowsingDataTypeExternalProtocolData; |
+ |
+// The following flag is used only in tests. In normal usage, hosted app |
+// data is controlled by the REMOVE_COOKIES flag, applied to the |
+// protected-web origin. |
+extern const content::BrowsingDataType kBrowsingDataTypeHostedAppDataTestOnly; |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// Group datatypes. |
+ |
+// "Site data" includes cookies, appcache, file systems, indexedDBs, local |
+// storage, webSQL, service workers, cache storage, plugin data, web app |
+// data (on Android) and statistics about passwords. |
+const std::set<const content::BrowsingDataType*>& BrowsingDataTypeSetSiteData(); |
+ |
+// Datatypes protected by Important Sites. |
+const std::set<const content::BrowsingDataType*>& |
+BrowsingDataTypeSetImportantSites(); |
+ |
+// Includes all the available remove options. Meant to be used by clients |
+// that wish to wipe as much data as possible from a Profile, to make it |
+// look like a new Profile. |
+const std::set<const content::BrowsingDataType*>& BrowsingDataTypeSetAll(); |
+ |
+// Includes all available remove options. Meant to be used when the Profile |
+// is scheduled to be deleted, and all possible data should be wiped from |
+// disk as soon as possible. |
+const std::set<const content::BrowsingDataType*>& |
+BrowsingDataTypeSetWipeProfile(); |
+ |
+#endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_ |