OLD | NEW |
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 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 REMOVE_PLUGIN_DATA = 1 << 9, | 87 REMOVE_PLUGIN_DATA = 1 << 9, |
88 REMOVE_PASSWORDS = 1 << 10, | 88 REMOVE_PASSWORDS = 1 << 10, |
89 REMOVE_WEBSQL = 1 << 11, | 89 REMOVE_WEBSQL = 1 << 11, |
90 REMOVE_CHANNEL_IDS = 1 << 12, | 90 REMOVE_CHANNEL_IDS = 1 << 12, |
91 REMOVE_MEDIA_LICENSES = 1 << 13, | 91 REMOVE_MEDIA_LICENSES = 1 << 13, |
92 REMOVE_SERVICE_WORKERS = 1 << 14, | 92 REMOVE_SERVICE_WORKERS = 1 << 14, |
93 REMOVE_SITE_USAGE_DATA = 1 << 15, | 93 REMOVE_SITE_USAGE_DATA = 1 << 15, |
94 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited | 94 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited |
95 // from deleting history or downloads. | 95 // from deleting history or downloads. |
96 REMOVE_NOCHECKS = 1 << 16, | 96 REMOVE_NOCHECKS = 1 << 16, |
97 REMOVE_WEBRTC_IDENTITY = 1 << 17, | 97 REMOVE_CACHE_STORAGE = 1 << 17, |
98 REMOVE_CACHE_STORAGE = 1 << 18, | |
99 #if BUILDFLAG(ANDROID_JAVA_UI) | 98 #if BUILDFLAG(ANDROID_JAVA_UI) |
100 REMOVE_WEBAPP_DATA = 1 << 19, | 99 REMOVE_WEBAPP_DATA = 1 << 18, |
101 #endif | 100 #endif |
102 // The following flag is used only in tests. In normal usage, hosted app | 101 // The following flag is used only in tests. In normal usage, hosted app |
103 // data is controlled by the REMOVE_COOKIES flag, applied to the | 102 // data is controlled by the REMOVE_COOKIES flag, applied to the |
104 // protected-web origin. | 103 // protected-web origin. |
105 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, | 104 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, |
106 | 105 |
107 // "Site data" includes cookies, appcache, file systems, indexedDBs, local | 106 // "Site data" includes cookies, appcache, file systems, indexedDBs, local |
108 // storage, webSQL, service workers, cache storage, plugin data, web app | 107 // storage, webSQL, service workers, cache storage, plugin data, web app |
109 // data (on Android) and statistics about passwords. | 108 // data (on Android) and statistics about passwords. |
110 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | | 109 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | |
111 REMOVE_INDEXEDDB | | 110 REMOVE_INDEXEDDB | |
112 REMOVE_LOCAL_STORAGE | | 111 REMOVE_LOCAL_STORAGE | |
113 REMOVE_PLUGIN_DATA | | 112 REMOVE_PLUGIN_DATA | |
114 REMOVE_SERVICE_WORKERS | | 113 REMOVE_SERVICE_WORKERS | |
115 REMOVE_CACHE_STORAGE | | 114 REMOVE_CACHE_STORAGE | |
116 REMOVE_WEBSQL | | 115 REMOVE_WEBSQL | |
117 REMOVE_CHANNEL_IDS | | 116 REMOVE_CHANNEL_IDS | |
118 REMOVE_SITE_USAGE_DATA | | |
119 #if BUILDFLAG(ANDROID_JAVA_UI) | 117 #if BUILDFLAG(ANDROID_JAVA_UI) |
120 REMOVE_WEBAPP_DATA | | 118 REMOVE_WEBAPP_DATA | |
121 #endif | 119 #endif |
122 REMOVE_WEBRTC_IDENTITY, | 120 REMOVE_SITE_USAGE_DATA, |
123 | 121 |
124 // Includes all the available remove options. Meant to be used by clients | 122 // Includes all the available remove options. Meant to be used by clients |
125 // that wish to wipe as much data as possible from a Profile, to make it | 123 // that wish to wipe as much data as possible from a Profile, to make it |
126 // look like a new Profile. | 124 // look like a new Profile. |
127 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | | 125 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | |
128 REMOVE_FORM_DATA | | 126 REMOVE_FORM_DATA | |
129 REMOVE_HISTORY | | 127 REMOVE_HISTORY | |
130 REMOVE_PASSWORDS | | 128 REMOVE_PASSWORDS | |
131 REMOVE_MEDIA_LICENSES, | 129 REMOVE_MEDIA_LICENSES, |
132 | 130 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // not initialised, so the registry must be mocked out. | 495 // not initialised, so the registry must be mocked out. |
498 std::unique_ptr<WebappRegistry> webapp_registry_; | 496 std::unique_ptr<WebappRegistry> webapp_registry_; |
499 #endif | 497 #endif |
500 | 498 |
501 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; | 499 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; |
502 | 500 |
503 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 501 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
504 }; | 502 }; |
505 | 503 |
506 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 504 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |