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

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

Issue 2745323004: Introduce DATA_TYPE_DOM_STORAGE for DOM-Accessible storage (Closed)
Patch Set: Created 3 years, 9 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 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData( 336 void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
337 const base::Time& delete_begin, 337 const base::Time& delete_begin,
338 const base::Time& delete_end, 338 const base::Time& delete_end,
339 int remove_mask, 339 int remove_mask,
340 const BrowsingDataFilterBuilder& filter_builder, 340 const BrowsingDataFilterBuilder& filter_builder,
341 int origin_type_mask, 341 int origin_type_mask,
342 const base::Closure& callback) { 342 const base::Closure& callback) {
343 DCHECK(((remove_mask & ~FILTERABLE_DATA_TYPES) == 0) || 343 DCHECK(((remove_mask & ~FILTERABLE_DATA_TYPES) == 0) ||
344 filter_builder.IsEmptyBlacklist()); 344 filter_builder.IsEmptyBlacklist());
345 345
346 // Embedder-defined DOM-accessible storage currently contains only
347 // one datatype, which is the durable storage permission.
348 if (remove_mask & BrowsingDataRemover::DATA_TYPE_EMBEDDER_DOM_STORAGE) {
349 remove_mask |= DATA_TYPE_DURABLE_PERMISSION;
350 }
351
346 if (origin_type_mask & BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB) { 352 if (origin_type_mask & BrowsingDataRemover::ORIGIN_TYPE_UNPROTECTED_WEB) {
347 content::RecordAction( 353 content::RecordAction(
348 UserMetricsAction("ClearBrowsingData_MaskContainsUnprotectedWeb")); 354 UserMetricsAction("ClearBrowsingData_MaskContainsUnprotectedWeb"));
349 } 355 }
350 if (origin_type_mask & BrowsingDataRemover::ORIGIN_TYPE_PROTECTED_WEB) { 356 if (origin_type_mask & BrowsingDataRemover::ORIGIN_TYPE_PROTECTED_WEB) {
351 content::RecordAction( 357 content::RecordAction(
352 UserMetricsAction("ClearBrowsingData_MaskContainsProtectedWeb")); 358 UserMetricsAction("ClearBrowsingData_MaskContainsProtectedWeb"));
353 } 359 }
354 #if BUILDFLAG(ENABLE_EXTENSIONS) 360 #if BUILDFLAG(ENABLE_EXTENSIONS)
355 if (origin_type_mask & ORIGIN_TYPE_EXTENSION) { 361 if (origin_type_mask & ORIGIN_TYPE_EXTENSION) {
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 } 1114 }
1109 1115
1110 void ChromeBrowsingDataRemoverDelegate:: 1116 void ChromeBrowsingDataRemoverDelegate::
1111 OnDeauthorizeFlashContentLicensesCompleted( 1117 OnDeauthorizeFlashContentLicensesCompleted(
1112 uint32_t request_id, 1118 uint32_t request_id,
1113 bool /* success */) { 1119 bool /* success */) {
1114 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); 1120 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_);
1115 clear_flash_content_licenses_.GetCompletionCallback().Run(); 1121 clear_flash_content_licenses_.GetCompletionCallback().Run();
1116 } 1122 }
1117 #endif 1123 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698