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

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

Issue 2664253006: Clears out external protocol data when cookies and site data is cleared. (Closed)
Patch Set: a 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover_browsertest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 <memory> 8 #include <memory>
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 REMOVE_SERVICE_WORKERS = 1 << 14, 73 REMOVE_SERVICE_WORKERS = 1 << 14,
74 REMOVE_SITE_USAGE_DATA = 1 << 15, 74 REMOVE_SITE_USAGE_DATA = 1 << 15,
75 // REMOVE_NOCHECKS intentionally does not check if the browser context is 75 // REMOVE_NOCHECKS intentionally does not check if the browser context is
76 // prohibited from deleting history or downloads. 76 // prohibited from deleting history or downloads.
77 REMOVE_NOCHECKS = 1 << 16, 77 REMOVE_NOCHECKS = 1 << 16,
78 REMOVE_CACHE_STORAGE = 1 << 17, 78 REMOVE_CACHE_STORAGE = 1 << 17,
79 #if defined(OS_ANDROID) 79 #if defined(OS_ANDROID)
80 REMOVE_WEBAPP_DATA = 1 << 18, 80 REMOVE_WEBAPP_DATA = 1 << 18,
81 #endif 81 #endif
82 REMOVE_DURABLE_PERMISSION = 1 << 19, 82 REMOVE_DURABLE_PERMISSION = 1 << 19,
83 REMOVE_EXTERNAL_PROTOCOL_DATA = 1 << 20,
83 84
84 // The following flag is used only in tests. In normal usage, hosted app 85 // The following flag is used only in tests. In normal usage, hosted app
85 // data is controlled by the REMOVE_COOKIES flag, applied to the 86 // data is controlled by the REMOVE_COOKIES flag, applied to the
86 // protected-web origin. 87 // protected-web origin.
87 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, 88 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31,
88 89
89 // "Site data" includes cookies, appcache, file systems, indexedDBs, local 90 // "Site data" includes cookies, appcache, file systems, indexedDBs, local
90 // storage, webSQL, service workers, cache storage, plugin data, web app 91 // storage, webSQL, service workers, cache storage, plugin data, web app
91 // data (on Android) and statistics about passwords. 92 // data (on Android) and statistics about passwords.
92 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | 93 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS |
93 REMOVE_INDEXEDDB | 94 REMOVE_INDEXEDDB |
94 REMOVE_LOCAL_STORAGE | 95 REMOVE_LOCAL_STORAGE |
95 REMOVE_PLUGIN_DATA | 96 REMOVE_PLUGIN_DATA |
96 REMOVE_SERVICE_WORKERS | 97 REMOVE_SERVICE_WORKERS |
97 REMOVE_CACHE_STORAGE | 98 REMOVE_CACHE_STORAGE |
98 REMOVE_WEBSQL | 99 REMOVE_WEBSQL |
99 REMOVE_CHANNEL_IDS | 100 REMOVE_CHANNEL_IDS |
100 #if defined(OS_ANDROID) 101 #if defined(OS_ANDROID)
101 REMOVE_WEBAPP_DATA | 102 REMOVE_WEBAPP_DATA |
102 #endif 103 #endif
103 REMOVE_SITE_USAGE_DATA | 104 REMOVE_SITE_USAGE_DATA |
104 REMOVE_DURABLE_PERMISSION, 105 REMOVE_DURABLE_PERMISSION |
106 REMOVE_EXTERNAL_PROTOCOL_DATA,
105 107
106 // Datatypes protected by Important Sites. 108 // Datatypes protected by Important Sites.
107 IMPORTANT_SITES_DATATYPES = REMOVE_SITE_DATA | REMOVE_CACHE, 109 IMPORTANT_SITES_DATATYPES = REMOVE_SITE_DATA | REMOVE_CACHE,
108 110
109 // Datatypes that can be deleted partially per URL / origin / domain, 111 // Datatypes that can be deleted partially per URL / origin / domain,
110 // whichever makes sense. 112 // whichever makes sense.
111 FILTERABLE_DATATYPES = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS, 113 FILTERABLE_DATATYPES = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS,
112 114
113 // Includes all the available remove options. Meant to be used by clients 115 // Includes all the available remove options. Meant to be used by clients
114 // that wish to wipe as much data as possible from a Profile, to make it 116 // that wish to wipe as much data as possible from a Profile, to make it
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // consider returning them in OnBrowsingDataRemoverDone() callback. If not, 205 // consider returning them in OnBrowsingDataRemoverDone() callback. If not,
204 // consider simplifying this interface by removing these methods and changing 206 // consider simplifying this interface by removing these methods and changing
205 // the tests to record the parameters using GMock instead. 207 // the tests to record the parameters using GMock instead.
206 virtual const base::Time& GetLastUsedBeginTime() = 0; 208 virtual const base::Time& GetLastUsedBeginTime() = 0;
207 virtual const base::Time& GetLastUsedEndTime() = 0; 209 virtual const base::Time& GetLastUsedEndTime() = 0;
208 virtual int GetLastUsedRemovalMask() = 0; 210 virtual int GetLastUsedRemovalMask() = 0;
209 virtual int GetLastUsedOriginTypeMask() = 0; 211 virtual int GetLastUsedOriginTypeMask() = 0;
210 }; 212 };
211 213
212 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 214 #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_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698