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

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

Issue 562423002: Clear GCM data when the user clears cookies and other site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 3 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 <set> 8 #include <set>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 REMOVE_LOCAL_STORAGE = 1 << 8, 86 REMOVE_LOCAL_STORAGE = 1 << 8,
87 REMOVE_PLUGIN_DATA = 1 << 9, 87 REMOVE_PLUGIN_DATA = 1 << 9,
88 REMOVE_PASSWORDS = 1 << 10, 88 REMOVE_PASSWORDS = 1 << 10,
89 REMOVE_WEBSQL = 1 << 11, 89 REMOVE_WEBSQL = 1 << 11,
90 REMOVE_CHANNEL_IDS = 1 << 12, 90 REMOVE_CHANNEL_IDS = 1 << 12,
91 REMOVE_CONTENT_LICENSES = 1 << 13, 91 REMOVE_CONTENT_LICENSES = 1 << 13,
92 REMOVE_SERVICE_WORKERS = 1 << 14, 92 REMOVE_SERVICE_WORKERS = 1 << 14,
93 #if defined(OS_ANDROID) 93 #if defined(OS_ANDROID)
94 REMOVE_APP_BANNER_DATA = 1 << 15, 94 REMOVE_APP_BANNER_DATA = 1 << 15,
95 #endif 95 #endif
96 #if !defined(OS_ANDROID)
97 REMOVE_GCM = 1 << 16,
98 #endif
96 // The following flag is used only in tests. In normal usage, hosted app 99 // The following flag is used only in tests. In normal usage, hosted app
97 // data is controlled by the REMOVE_COOKIES flag, applied to the 100 // data is controlled by the REMOVE_COOKIES flag, applied to the
98 // protected-web origin. 101 // protected-web origin.
99 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, 102 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31,
100 103
101 // "Site data" includes cookies, appcache, file systems, indexedDBs, local 104 // "Site data" includes cookies, appcache, file systems, indexedDBs, local
102 // storage, webSQL, service workers, and plugin data. 105 // storage, webSQL, service workers, and plugin data.
103 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | 106 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS |
104 REMOVE_INDEXEDDB | 107 REMOVE_INDEXEDDB |
105 REMOVE_LOCAL_STORAGE | 108 REMOVE_LOCAL_STORAGE |
106 REMOVE_PLUGIN_DATA | 109 REMOVE_PLUGIN_DATA |
107 REMOVE_SERVICE_WORKERS | 110 REMOVE_SERVICE_WORKERS |
108 REMOVE_WEBSQL | 111 REMOVE_WEBSQL |
109 #if defined(OS_ANDROID) 112 #if defined(OS_ANDROID)
110 REMOVE_APP_BANNER_DATA | 113 REMOVE_APP_BANNER_DATA |
111 #endif 114 #endif
115 #if !defined(OS_ANDROID)
116 REMOVE_GCM |
117 #endif
112 REMOVE_CHANNEL_IDS, 118 REMOVE_CHANNEL_IDS,
113 119
114 // Includes all the available remove options. Meant to be used by clients 120 // Includes all the available remove options. Meant to be used by clients
115 // that wish to wipe as much data as possible from a Profile, to make it 121 // that wish to wipe as much data as possible from a Profile, to make it
116 // look like a new Profile. 122 // look like a new Profile.
117 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | 123 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS |
118 REMOVE_FORM_DATA | 124 REMOVE_FORM_DATA |
119 REMOVE_HISTORY | 125 REMOVE_HISTORY |
120 REMOVE_PASSWORDS | 126 REMOVE_PASSWORDS |
121 REMOVE_CONTENT_LICENSES, 127 REMOVE_CONTENT_LICENSES,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 464
459 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; 465 scoped_ptr<TemplateURLService::Subscription> template_url_sub_;
460 466
461 // We do not own this. 467 // We do not own this.
462 content::StoragePartition* storage_partition_for_testing_; 468 content::StoragePartition* storage_partition_for_testing_;
463 469
464 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 470 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
465 }; 471 };
466 472
467 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 473 #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