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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 2354843006: [Durable] Clear durable permission when clearing site data. (Closed)
Patch Set: fix test Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <queue> 10 #include <queue>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 REMOVE_MEDIA_LICENSES = 1 << 13, 120 REMOVE_MEDIA_LICENSES = 1 << 13,
121 REMOVE_SERVICE_WORKERS = 1 << 14, 121 REMOVE_SERVICE_WORKERS = 1 << 14,
122 REMOVE_SITE_USAGE_DATA = 1 << 15, 122 REMOVE_SITE_USAGE_DATA = 1 << 15,
123 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited 123 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited
124 // from deleting history or downloads. 124 // from deleting history or downloads.
125 REMOVE_NOCHECKS = 1 << 16, 125 REMOVE_NOCHECKS = 1 << 16,
126 REMOVE_CACHE_STORAGE = 1 << 17, 126 REMOVE_CACHE_STORAGE = 1 << 17,
127 #if BUILDFLAG(ANDROID_JAVA_UI) 127 #if BUILDFLAG(ANDROID_JAVA_UI)
128 REMOVE_WEBAPP_DATA = 1 << 18, 128 REMOVE_WEBAPP_DATA = 1 << 18,
129 #endif 129 #endif
130 REMOVE_DURABLE_PERMISSION = 1 << 19,
131
130 // The following flag is used only in tests. In normal usage, hosted app 132 // The following flag is used only in tests. In normal usage, hosted app
131 // data is controlled by the REMOVE_COOKIES flag, applied to the 133 // data is controlled by the REMOVE_COOKIES flag, applied to the
132 // protected-web origin. 134 // protected-web origin.
133 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, 135 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31,
134 136
135 // "Site data" includes cookies, appcache, file systems, indexedDBs, local 137 // "Site data" includes cookies, appcache, file systems, indexedDBs, local
136 // storage, webSQL, service workers, cache storage, plugin data, web app 138 // storage, webSQL, service workers, cache storage, plugin data, web app
137 // data (on Android) and statistics about passwords. 139 // data (on Android) and statistics about passwords.
138 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | 140 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS |
139 REMOVE_INDEXEDDB | 141 REMOVE_INDEXEDDB |
140 REMOVE_LOCAL_STORAGE | 142 REMOVE_LOCAL_STORAGE |
141 REMOVE_PLUGIN_DATA | 143 REMOVE_PLUGIN_DATA |
142 REMOVE_SERVICE_WORKERS | 144 REMOVE_SERVICE_WORKERS |
143 REMOVE_CACHE_STORAGE | 145 REMOVE_CACHE_STORAGE |
144 REMOVE_WEBSQL | 146 REMOVE_WEBSQL |
145 REMOVE_CHANNEL_IDS | 147 REMOVE_CHANNEL_IDS |
146 #if BUILDFLAG(ANDROID_JAVA_UI) 148 #if BUILDFLAG(ANDROID_JAVA_UI)
147 REMOVE_WEBAPP_DATA | 149 REMOVE_WEBAPP_DATA |
148 #endif 150 #endif
149 REMOVE_SITE_USAGE_DATA, 151 REMOVE_SITE_USAGE_DATA |
152 REMOVE_DURABLE_PERMISSION,
150 153
151 // Datatypes that can be deleted partially per URL / origin / domain, 154 // Datatypes that can be deleted partially per URL / origin / domain,
152 // whichever makes sense. 155 // whichever makes sense.
153 FILTERABLE_DATATYPES = REMOVE_SITE_DATA | 156 FILTERABLE_DATATYPES = REMOVE_SITE_DATA |
154 REMOVE_CACHE | 157 REMOVE_CACHE |
155 REMOVE_DOWNLOADS, 158 REMOVE_DOWNLOADS,
156 159
157 // Includes all the available remove options. Meant to be used by clients 160 // Includes all the available remove options. Meant to be used by clients
158 // that wish to wipe as much data as possible from a Profile, to make it 161 // that wish to wipe as much data as possible from a Profile, to make it
159 // look like a new Profile. 162 // look like a new Profile.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // not initialised, so the registry must be mocked out. 571 // not initialised, so the registry must be mocked out.
569 std::unique_ptr<WebappRegistry> webapp_registry_; 572 std::unique_ptr<WebappRegistry> webapp_registry_;
570 #endif 573 #endif
571 574
572 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_; 575 base::WeakPtrFactory<BrowsingDataRemover> weak_ptr_factory_;
573 576
574 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 577 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
575 }; 578 };
576 579
577 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 580 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698