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

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

Issue 2816723002: Add "Site Settings" option to Clear Browsing Data on Android (Closed)
Patch Set: fix deps Created 3 years, 7 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
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_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_
6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 DATA_TYPE_FORM_DATA = DATA_TYPE_EMBEDDER_BEGIN << 1, 65 DATA_TYPE_FORM_DATA = DATA_TYPE_EMBEDDER_BEGIN << 1,
66 DATA_TYPE_PASSWORDS = DATA_TYPE_EMBEDDER_BEGIN << 2, 66 DATA_TYPE_PASSWORDS = DATA_TYPE_EMBEDDER_BEGIN << 2,
67 DATA_TYPE_PLUGIN_DATA = DATA_TYPE_EMBEDDER_BEGIN << 3, 67 DATA_TYPE_PLUGIN_DATA = DATA_TYPE_EMBEDDER_BEGIN << 3,
68 #if defined(OS_ANDROID) 68 #if defined(OS_ANDROID)
69 DATA_TYPE_WEB_APP_DATA = DATA_TYPE_EMBEDDER_BEGIN << 4, 69 DATA_TYPE_WEB_APP_DATA = DATA_TYPE_EMBEDDER_BEGIN << 4,
70 #endif 70 #endif
71 DATA_TYPE_SITE_USAGE_DATA = DATA_TYPE_EMBEDDER_BEGIN << 5, 71 DATA_TYPE_SITE_USAGE_DATA = DATA_TYPE_EMBEDDER_BEGIN << 5,
72 DATA_TYPE_DURABLE_PERMISSION = DATA_TYPE_EMBEDDER_BEGIN << 6, 72 DATA_TYPE_DURABLE_PERMISSION = DATA_TYPE_EMBEDDER_BEGIN << 6,
73 DATA_TYPE_EXTERNAL_PROTOCOL_DATA = DATA_TYPE_EMBEDDER_BEGIN << 7, 73 DATA_TYPE_EXTERNAL_PROTOCOL_DATA = DATA_TYPE_EMBEDDER_BEGIN << 7,
74 DATA_TYPE_HOSTED_APP_DATA_TEST_ONLY = DATA_TYPE_EMBEDDER_BEGIN << 8, 74 DATA_TYPE_HOSTED_APP_DATA_TEST_ONLY = DATA_TYPE_EMBEDDER_BEGIN << 8,
75 DATA_TYPE_CONTENT_SETTINGS = DATA_TYPE_EMBEDDER_BEGIN << 9,
75 76
76 // Group datatypes. 77 // Group datatypes.
77 78
78 // "Site data" includes storage backend accessible to websites and some 79 // "Site data" includes storage backend accessible to websites and some
79 // additional metadata kept by the browser (e.g. site usage data). 80 // additional metadata kept by the browser (e.g. site usage data).
80 DATA_TYPE_SITE_DATA = 81 DATA_TYPE_SITE_DATA =
81 content::BrowsingDataRemover::DATA_TYPE_APP_CACHE | 82 content::BrowsingDataRemover::DATA_TYPE_APP_CACHE |
82 content::BrowsingDataRemover::DATA_TYPE_COOKIES | 83 content::BrowsingDataRemover::DATA_TYPE_COOKIES |
83 content::BrowsingDataRemover::DATA_TYPE_FILE_SYSTEMS | 84 content::BrowsingDataRemover::DATA_TYPE_FILE_SYSTEMS |
84 content::BrowsingDataRemover::DATA_TYPE_INDEXED_DB | 85 content::BrowsingDataRemover::DATA_TYPE_INDEXED_DB |
(...skipping 11 matching lines...) Expand all
96 DATA_TYPE_EXTERNAL_PROTOCOL_DATA, 97 DATA_TYPE_EXTERNAL_PROTOCOL_DATA,
97 98
98 // Datatypes protected by Important Sites. 99 // Datatypes protected by Important Sites.
99 IMPORTANT_SITES_DATA_TYPES = 100 IMPORTANT_SITES_DATA_TYPES =
100 DATA_TYPE_SITE_DATA | content::BrowsingDataRemover::DATA_TYPE_CACHE, 101 DATA_TYPE_SITE_DATA | content::BrowsingDataRemover::DATA_TYPE_CACHE,
101 102
102 // Datatypes that can be deleted partially per URL / origin / domain, 103 // Datatypes that can be deleted partially per URL / origin / domain,
103 // whichever makes sense. 104 // whichever makes sense.
104 FILTERABLE_DATA_TYPES = DATA_TYPE_SITE_DATA | 105 FILTERABLE_DATA_TYPES = DATA_TYPE_SITE_DATA |
105 content::BrowsingDataRemover::DATA_TYPE_CACHE | 106 content::BrowsingDataRemover::DATA_TYPE_CACHE |
106 content::BrowsingDataRemover::DATA_TYPE_DOWNLOADS, 107 content::BrowsingDataRemover::DATA_TYPE_DOWNLOADS |
108 DATA_TYPE_CONTENT_SETTINGS,
107 109
108 // Includes all the available remove options. Meant to be used by clients 110 // Includes all the available remove options. Meant to be used by clients
109 // that wish to wipe as much data as possible from a Profile, to make it 111 // that wish to wipe as much data as possible from a Profile, to make it
110 // look like a new Profile. 112 // look like a new Profile.
111 ALL_DATA_TYPES = DATA_TYPE_SITE_DATA | 113 ALL_DATA_TYPES = DATA_TYPE_SITE_DATA |
112 content::BrowsingDataRemover::DATA_TYPE_CACHE | 114 content::BrowsingDataRemover::DATA_TYPE_CACHE |
113 content::BrowsingDataRemover::DATA_TYPE_DOWNLOADS | 115 content::BrowsingDataRemover::DATA_TYPE_DOWNLOADS |
114 DATA_TYPE_FORM_DATA | 116 DATA_TYPE_FORM_DATA |
115 DATA_TYPE_HISTORY | 117 DATA_TYPE_HISTORY |
116 DATA_TYPE_PASSWORDS | 118 DATA_TYPE_PASSWORDS |
117 content::BrowsingDataRemover::DATA_TYPE_MEDIA_LICENSES, 119 content::BrowsingDataRemover::DATA_TYPE_MEDIA_LICENSES |
120 DATA_TYPE_CONTENT_SETTINGS,
118 121
119 // Includes all available remove options. Meant to be used when the Profile 122 // Includes all available remove options. Meant to be used when the Profile
120 // is scheduled to be deleted, and all possible data should be wiped from 123 // is scheduled to be deleted, and all possible data should be wiped from
121 // disk as soon as possible. 124 // disk as soon as possible.
122 WIPE_PROFILE = 125 WIPE_PROFILE =
123 ALL_DATA_TYPES | content::BrowsingDataRemover::DATA_TYPE_NO_CHECKS, 126 ALL_DATA_TYPES | content::BrowsingDataRemover::DATA_TYPE_NO_CHECKS,
124 }; 127 };
125 128
126 // This is an extension of content::BrowsingDataRemover::OriginType which 129 // This is an extension of content::BrowsingDataRemover::OriginType which
127 // includes all origin types therefrom and adds additional Chrome-specific 130 // includes all origin types therefrom and adds additional Chrome-specific
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // not initialised, so the registry must be mocked out. 318 // not initialised, so the registry must be mocked out.
316 std::unique_ptr<WebappRegistry> webapp_registry_; 319 std::unique_ptr<WebappRegistry> webapp_registry_;
317 #endif 320 #endif
318 321
319 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_; 322 base::WeakPtrFactory<ChromeBrowsingDataRemoverDelegate> weak_ptr_factory_;
320 323
321 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate); 324 DISALLOW_COPY_AND_ASSIGN(ChromeBrowsingDataRemoverDelegate);
322 }; 325 };
323 326
324 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ 327 #endif // CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698