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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 REMOVE_PASSWORDS = 1 << 10, | 74 REMOVE_PASSWORDS = 1 << 10, |
75 REMOVE_WEBSQL = 1 << 11, | 75 REMOVE_WEBSQL = 1 << 11, |
76 REMOVE_CHANNEL_IDS = 1 << 12, | 76 REMOVE_CHANNEL_IDS = 1 << 12, |
77 REMOVE_CONTENT_LICENSES = 1 << 13, | 77 REMOVE_CONTENT_LICENSES = 1 << 13, |
78 REMOVE_SERVICE_WORKERS = 1 << 14, | 78 REMOVE_SERVICE_WORKERS = 1 << 14, |
79 REMOVE_SITE_USAGE_DATA = 1 << 15, | 79 REMOVE_SITE_USAGE_DATA = 1 << 15, |
80 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited | 80 // REMOVE_NOCHECKS intentionally does not check if the Profile's prohibited |
81 // from deleting history or downloads. | 81 // from deleting history or downloads. |
82 REMOVE_NOCHECKS = 1 << 16, | 82 REMOVE_NOCHECKS = 1 << 16, |
83 REMOVE_WEBRTC_IDENTITY = 1 << 17, | 83 REMOVE_WEBRTC_IDENTITY = 1 << 17, |
| 84 REMOVE_CACHE_STORAGE = 1 << 18, |
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, and plugin data. | 91 // storage, webSQL, service workers, caches storage, and plugin data. |
91 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | | 92 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | |
92 REMOVE_INDEXEDDB | | 93 REMOVE_INDEXEDDB | |
93 REMOVE_LOCAL_STORAGE | | 94 REMOVE_LOCAL_STORAGE | |
94 REMOVE_PLUGIN_DATA | | 95 REMOVE_PLUGIN_DATA | |
95 REMOVE_SERVICE_WORKERS | | 96 REMOVE_SERVICE_WORKERS | |
| 97 REMOVE_CACHE_STORAGE | |
96 REMOVE_WEBSQL | | 98 REMOVE_WEBSQL | |
97 REMOVE_CHANNEL_IDS | | 99 REMOVE_CHANNEL_IDS | |
98 REMOVE_SITE_USAGE_DATA | | 100 REMOVE_SITE_USAGE_DATA | |
99 REMOVE_WEBRTC_IDENTITY, | 101 REMOVE_WEBRTC_IDENTITY, |
100 | 102 |
101 // Includes all the available remove options. Meant to be used by clients | 103 // Includes all the available remove options. Meant to be used by clients |
102 // that wish to wipe as much data as possible from a Profile, to make it | 104 // that wish to wipe as much data as possible from a Profile, to make it |
103 // look like a new Profile. | 105 // look like a new Profile. |
104 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | | 106 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | |
105 REMOVE_FORM_DATA | | 107 REMOVE_FORM_DATA | |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 455 |
454 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 456 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
455 | 457 |
456 // We do not own this. | 458 // We do not own this. |
457 content::StoragePartition* storage_partition_for_testing_ = nullptr; | 459 content::StoragePartition* storage_partition_for_testing_ = nullptr; |
458 | 460 |
459 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 461 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
460 }; | 462 }; |
461 | 463 |
462 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 464 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |