| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 REMOVE_CONTENT_LICENSES = 1 << 13, | 107 REMOVE_CONTENT_LICENSES = 1 << 13, |
| 108 REMOVE_SERVICE_WORKERS = 1 << 14, | 108 REMOVE_SERVICE_WORKERS = 1 << 14, |
| 109 REMOVE_SITE_USAGE_DATA = 1 << 15, | 109 REMOVE_SITE_USAGE_DATA = 1 << 15, |
| 110 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited | 110 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited |
| 111 // from deleting history or downloads. | 111 // from deleting history or downloads. |
| 112 REMOVE_NOCHECKS = 1 << 16, | 112 REMOVE_NOCHECKS = 1 << 16, |
| 113 REMOVE_WEBRTC_IDENTITY = 1 << 17, | 113 REMOVE_WEBRTC_IDENTITY = 1 << 17, |
| 114 REMOVE_CACHE_STORAGE = 1 << 18, | 114 REMOVE_CACHE_STORAGE = 1 << 18, |
| 115 #if BUILDFLAG(ANDROID_JAVA_UI) | 115 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 116 REMOVE_WEBAPP_DATA = 1 << 19, | 116 REMOVE_WEBAPP_DATA = 1 << 19, |
| 117 REMOVE_OFFLINE_PAGE_DATA = 1 << 20, | |
| 118 #endif | 117 #endif |
| 119 // The following flag is used only in tests. In normal usage, hosted app | 118 // The following flag is used only in tests. In normal usage, hosted app |
| 120 // data is controlled by the REMOVE_COOKIES flag, applied to the | 119 // data is controlled by the REMOVE_COOKIES flag, applied to the |
| 121 // protected-web origin. | 120 // protected-web origin. |
| 122 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, | 121 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, |
| 123 | 122 |
| 124 // "Site data" includes cookies, appcache, file systems, indexedDBs, local | 123 // "Site data" includes cookies, appcache, file systems, indexedDBs, local |
| 125 // storage, webSQL, service workers, cache storage, plugin data, web app | 124 // storage, webSQL, service workers, cache storage, plugin data, web app |
| 126 // data (on Android) and statistics about passwords. | 125 // data (on Android) and statistics about passwords. |
| 127 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | | 126 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | |
| 128 REMOVE_INDEXEDDB | | 127 REMOVE_INDEXEDDB | |
| 129 REMOVE_LOCAL_STORAGE | | 128 REMOVE_LOCAL_STORAGE | |
| 130 REMOVE_PLUGIN_DATA | | 129 REMOVE_PLUGIN_DATA | |
| 131 REMOVE_SERVICE_WORKERS | | 130 REMOVE_SERVICE_WORKERS | |
| 132 REMOVE_CACHE_STORAGE | | 131 REMOVE_CACHE_STORAGE | |
| 133 REMOVE_WEBSQL | | 132 REMOVE_WEBSQL | |
| 134 REMOVE_CHANNEL_IDS | | 133 REMOVE_CHANNEL_IDS | |
| 135 REMOVE_SITE_USAGE_DATA | | 134 REMOVE_SITE_USAGE_DATA | |
| 136 #if BUILDFLAG(ANDROID_JAVA_UI) | 135 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 137 REMOVE_WEBAPP_DATA | | 136 REMOVE_WEBAPP_DATA | |
| 138 REMOVE_OFFLINE_PAGE_DATA | | |
| 139 #endif | 137 #endif |
| 140 REMOVE_WEBRTC_IDENTITY, | 138 REMOVE_WEBRTC_IDENTITY, |
| 141 | 139 |
| 142 // Includes all the available remove options. Meant to be used by clients | 140 // Includes all the available remove options. Meant to be used by clients |
| 143 // that wish to wipe as much data as possible from a Profile, to make it | 141 // that wish to wipe as much data as possible from a Profile, to make it |
| 144 // look like a new Profile. | 142 // look like a new Profile. |
| 145 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | | 143 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | |
| 146 REMOVE_FORM_DATA | | 144 REMOVE_FORM_DATA | |
| 147 REMOVE_HISTORY | | 145 REMOVE_HISTORY | |
| 148 REMOVE_PASSWORDS | | 146 REMOVE_PASSWORDS | |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // not initialised, so the registry must be mocked out. | 516 // not initialised, so the registry must be mocked out. |
| 519 std::unique_ptr<WebappRegistry> webapp_registry_; | 517 std::unique_ptr<WebappRegistry> webapp_registry_; |
| 520 #endif | 518 #endif |
| 521 | 519 |
| 522 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; | 520 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; |
| 523 | 521 |
| 524 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 522 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 525 }; | 523 }; |
| 526 | 524 |
| 527 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 525 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |