Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 REMOVE_FORM_DATA = 1 << 5, | 75 REMOVE_FORM_DATA = 1 << 5, |
| 76 // In addition to visits, REMOVE_HISTORY removes keywords and last session. | 76 // In addition to visits, REMOVE_HISTORY removes keywords and last session. |
| 77 REMOVE_HISTORY = 1 << 6, | 77 REMOVE_HISTORY = 1 << 6, |
| 78 REMOVE_INDEXEDDB = 1 << 7, | 78 REMOVE_INDEXEDDB = 1 << 7, |
| 79 REMOVE_LOCAL_STORAGE = 1 << 8, | 79 REMOVE_LOCAL_STORAGE = 1 << 8, |
| 80 REMOVE_PLUGIN_DATA = 1 << 9, | 80 REMOVE_PLUGIN_DATA = 1 << 9, |
| 81 REMOVE_PASSWORDS = 1 << 10, | 81 REMOVE_PASSWORDS = 1 << 10, |
| 82 REMOVE_WEBSQL = 1 << 11, | 82 REMOVE_WEBSQL = 1 << 11, |
| 83 REMOVE_SERVER_BOUND_CERTS = 1 << 12, | 83 REMOVE_SERVER_BOUND_CERTS = 1 << 12, |
| 84 REMOVE_CONTENT_LICENSES = 1 << 13, | 84 REMOVE_CONTENT_LICENSES = 1 << 13, |
| 85 REMOVE_SHADER_CACHE = 1 << 14, | |
| 86 // 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 |
| 87 // data is controlled by the REMOVE_COOKIES flag, applied to the | 86 // data is controlled by the REMOVE_COOKIES flag, applied to the |
| 88 // protected-web origin. | 87 // protected-web origin. |
| 89 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, | 88 REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31, |
| 90 | 89 |
| 91 // "Site data" includes cookies, appcache, file systems, indexedDBs, local | 90 // "Site data" includes cookies, appcache, file systems, indexedDBs, local |
| 92 // storage, webSQL, shader, and plugin data. | 91 // storage, webSQL, shader, and plugin data. |
|
Pam (message me for reviews)
2013/06/18 08:28:52
This says "shader" but doesn't include the shader
| |
| 93 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | | 92 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS | |
| 94 REMOVE_INDEXEDDB | REMOVE_LOCAL_STORAGE | | 93 REMOVE_INDEXEDDB | REMOVE_LOCAL_STORAGE | |
| 95 REMOVE_PLUGIN_DATA | REMOVE_WEBSQL | | 94 REMOVE_PLUGIN_DATA | REMOVE_WEBSQL | |
| 96 REMOVE_SERVER_BOUND_CERTS, | 95 REMOVE_SERVER_BOUND_CERTS, |
| 97 // "cached data" includes the http cache and the shader cache. | |
| 98 REMOVE_CACHED_DATA = REMOVE_CACHE | REMOVE_SHADER_CACHE | |
| 99 }; | 96 }; |
| 100 | 97 |
| 101 // When BrowsingDataRemover successfully removes data, a notification of type | 98 // When BrowsingDataRemover successfully removes data, a notification of type |
| 102 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of | 99 // NOTIFICATION_BROWSING_DATA_REMOVED is triggered with a Details object of |
| 103 // this type. | 100 // this type. |
| 104 struct NotificationDetails { | 101 struct NotificationDetails { |
| 105 NotificationDetails(); | 102 NotificationDetails(); |
| 106 NotificationDetails(const NotificationDetails& details); | 103 NotificationDetails(const NotificationDetails& details); |
| 107 NotificationDetails(base::Time removal_begin, | 104 NotificationDetails(base::Time removal_begin, |
| 108 int removal_mask, | 105 int removal_mask, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 436 | 433 |
| 437 ObserverList<Observer> observer_list_; | 434 ObserverList<Observer> observer_list_; |
| 438 | 435 |
| 439 // Used if we need to clear history. | 436 // Used if we need to clear history. |
| 440 CancelableTaskTracker history_task_tracker_; | 437 CancelableTaskTracker history_task_tracker_; |
| 441 | 438 |
| 442 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 439 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 443 }; | 440 }; |
| 444 | 441 |
| 445 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ | 442 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |