| OLD | NEW |
| 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 Loading... |
| 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 | |
| 99 // The following flag is used only in tests. In normal usage, hosted app | 96 // The following flag is used only in tests. In normal usage, hosted app |
| 100 // data is controlled by the REMOVE_COOKIES flag, applied to the | 97 // data is controlled by the REMOVE_COOKIES flag, applied to the |
| 101 // protected-web origin. | 98 // protected-web origin. |
| 102 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, | 99 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, |
| 103 | 100 |
| 104 // "Site data" includes cookies, appcache, file systems, indexedDBs, local | 101 // "Site data" includes cookies, appcache, file systems, indexedDBs, local |
| 105 // storage, webSQL, service workers, and plugin data. | 102 // storage, webSQL, service workers, and plugin data. |
| 106 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | | 103 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | |
| 107 REMOVE_INDEXEDDB | | 104 REMOVE_INDEXEDDB | |
| 108 REMOVE_LOCAL_STORAGE | | 105 REMOVE_LOCAL_STORAGE | |
| 109 REMOVE_PLUGIN_DATA | | 106 REMOVE_PLUGIN_DATA | |
| 110 REMOVE_SERVICE_WORKERS | | 107 REMOVE_SERVICE_WORKERS | |
| 111 REMOVE_WEBSQL | | 108 REMOVE_WEBSQL | |
| 112 #if defined(OS_ANDROID) | 109 #if defined(OS_ANDROID) |
| 113 REMOVE_APP_BANNER_DATA | | 110 REMOVE_APP_BANNER_DATA | |
| 114 #endif | 111 #endif |
| 115 #if !defined(OS_ANDROID) | |
| 116 REMOVE_GCM | | |
| 117 #endif | |
| 118 REMOVE_CHANNEL_IDS, | 112 REMOVE_CHANNEL_IDS, |
| 119 | 113 |
| 120 // Includes all the available remove options. Meant to be used by clients | 114 // Includes all the available remove options. Meant to be used by clients |
| 121 // that wish to wipe as much data as possible from a Profile, to make it | 115 // that wish to wipe as much data as possible from a Profile, to make it |
| 122 // look like a new Profile. | 116 // look like a new Profile. |
| 123 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | | 117 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | |
| 124 REMOVE_FORM_DATA | | 118 REMOVE_FORM_DATA | |
| 125 REMOVE_HISTORY | | 119 REMOVE_HISTORY | |
| 126 REMOVE_PASSWORDS | | 120 REMOVE_PASSWORDS | |
| 127 REMOVE_CONTENT_LICENSES, | 121 REMOVE_CONTENT_LICENSES, |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 | 458 |
| 465 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 459 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
| 466 | 460 |
| 467 // We do not own this. | 461 // We do not own this. |
| 468 content::StoragePartition* storage_partition_for_testing_; | 462 content::StoragePartition* storage_partition_for_testing_; |
| 469 | 463 |
| 470 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 464 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 471 }; | 465 }; |
| 472 | 466 |
| 473 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 467 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |