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

Unified 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 side-by-side diff with in-line comments
Download patch
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..5d8382fa658d0f831376a1d3d4d84ee56c6e236b
--- /dev/null
+++ b/chrome/browser/browsing_data/chrome_browsing_data_types.h
@@ -0,0 +1,76 @@
+// 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.
+
+#include <set>
+
+#include "build/build_config.h"
+#include "content/public/browser/browsing_data_types.h"
+
+#ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_
+#define CHROME_BROWSER_BROWSING_DATA_CHROME_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;
+
+// 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.
+extern const std::set<const content::BrowsingDataType*>&
+kBrowsingDataTypeSetSiteData;
+
+// Datatypes protected by Important Sites.
+extern const std::set<const content::BrowsingDataType*>&
+kBrowsingDataTypeSetImportantSites;
+
+// 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.
+extern const std::set<const content::BrowsingDataType*>&
+kBrowsingDataTypeSetAll;
+
+// 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.
+extern const std::set<const content::BrowsingDataType*>&
+kBrowsingDataTypeSetWipeProfile;
+
+#endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698