| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ |
| 6 #define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 6 #define IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 REMOVE_FORM_DATA = 1 << 4, | 45 REMOVE_FORM_DATA = 1 << 4, |
| 46 // In addition to visits, REMOVE_HISTORY removes keywords and last session. | 46 // In addition to visits, REMOVE_HISTORY removes keywords and last session. |
| 47 REMOVE_HISTORY = 1 << 5, | 47 REMOVE_HISTORY = 1 << 5, |
| 48 REMOVE_INDEXEDDB = 1 << 6, | 48 REMOVE_INDEXEDDB = 1 << 6, |
| 49 REMOVE_LOCAL_STORAGE = 1 << 7, | 49 REMOVE_LOCAL_STORAGE = 1 << 7, |
| 50 REMOVE_PASSWORDS = 1 << 8, | 50 REMOVE_PASSWORDS = 1 << 8, |
| 51 REMOVE_WEBSQL = 1 << 9, | 51 REMOVE_WEBSQL = 1 << 9, |
| 52 REMOVE_CHANNEL_IDS = 1 << 10, | 52 REMOVE_CHANNEL_IDS = 1 << 10, |
| 53 REMOVE_GOOGLE_APP_LAUNCHER_DATA = 1 << 11, | 53 REMOVE_GOOGLE_APP_LAUNCHER_DATA = 1 << 11, |
| 54 REMOVE_CACHE_STORAGE = 1 << 12, | 54 REMOVE_CACHE_STORAGE = 1 << 12, |
| 55 REMOVE_VISITED_LINKS = 1 << 13, |
| 55 | 56 |
| 56 // "Site data" includes cookies, appcache, file systems, indexedDBs, local | 57 // "Site data" includes cookies, appcache, file systems, indexedDBs, local |
| 57 // storage, webSQL, service workers, cache storage, plugin data, and web app | 58 // storage, webSQL, service workers, cache storage, plugin data, and web app |
| 58 // data (on Android). | 59 // data (on Android). |
| 59 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_INDEXEDDB | | 60 REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_INDEXEDDB | |
| 60 REMOVE_LOCAL_STORAGE | | 61 REMOVE_LOCAL_STORAGE | |
| 61 REMOVE_CACHE_STORAGE | | 62 REMOVE_CACHE_STORAGE | |
| 62 REMOVE_WEBSQL | | 63 REMOVE_WEBSQL | |
| 63 REMOVE_CHANNEL_IDS, | 64 REMOVE_CHANNEL_IDS | |
| 65 REMOVE_VISITED_LINKS, |
| 64 | 66 |
| 65 // Includes all the available remove options. Meant to be used by clients | 67 // Includes all the available remove options. Meant to be used by clients |
| 66 // that wish to wipe as much data as possible from a ChromeBrowserState, to | 68 // that wish to wipe as much data as possible from a ChromeBrowserState, to |
| 67 // make it look like a new ChromeBrowserState. | 69 // make it look like a new ChromeBrowserState. |
| 68 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | | 70 REMOVE_ALL = REMOVE_SITE_DATA | REMOVE_CACHE | REMOVE_DOWNLOADS | |
| 69 REMOVE_FORM_DATA | | 71 REMOVE_FORM_DATA | |
| 70 REMOVE_HISTORY | | 72 REMOVE_HISTORY | |
| 71 REMOVE_PASSWORDS, | 73 REMOVE_PASSWORDS, |
| 72 }; | 74 }; |
| 73 | 75 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; | 267 scoped_ptr<TemplateURLService::Subscription> template_url_sub_; |
| 266 | 268 |
| 267 // Object that supports legacy functionality and functionality that has not | 269 // Object that supports legacy functionality and functionality that has not |
| 268 // yet been ported to //ios/chrome. | 270 // yet been ported to //ios/chrome. |
| 269 scoped_ptr<ios::IOSChromeBrowsingDataRemoverProvider> provider_; | 271 scoped_ptr<ios::IOSChromeBrowsingDataRemoverProvider> provider_; |
| 270 | 272 |
| 271 DISALLOW_COPY_AND_ASSIGN(IOSChromeBrowsingDataRemover); | 273 DISALLOW_COPY_AND_ASSIGN(IOSChromeBrowsingDataRemover); |
| 272 }; | 274 }; |
| 273 | 275 |
| 274 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ | 276 #endif // IOS_CHROME_BROWSER_BROWSING_DATA_IOS_CHROME_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |