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 // Defines the Chrome Extensions BrowsingData API functions, which entail | 5 // Defines the Chrome Extensions BrowsingData API functions, which entail |
6 // clearing browsing data, and clearing the browser's cache (which, let's be | 6 // clearing browsing data, and clearing the browser's cache (which, let's be |
7 // honest, are the same thing), as specified in the extension API JSON. | 7 // honest, are the same thing), as specified in the extension API JSON. |
8 | 8 |
9 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" | 9 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
15 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 15 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
16 #include "chrome/browser/plugins/plugin_data_remover_helper.h" | 16 #include "chrome/browser/plugins/plugin_data_remover_helper.h" |
17 #include "chrome/browser/plugins/plugin_prefs.h" | 17 #include "chrome/browser/plugins/plugin_prefs.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/common/extensions/extension.h" | 20 #include "chrome/common/extensions/extension.h" |
21 #include "chrome/common/extensions/extension_error_utils.h" | |
22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "extensions/common/error_utils.h" |
23 | 23 |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 | 25 |
26 namespace extension_browsing_data_api_constants { | 26 namespace extension_browsing_data_api_constants { |
27 | 27 |
28 // Type Keys. | 28 // Type Keys. |
29 const char kAppCacheKey[] = "appcache"; | 29 const char kAppCacheKey[] = "appcache"; |
30 const char kCacheKey[] = "cache"; | 30 const char kCacheKey[] = "cache"; |
31 const char kCookiesKey[] = "cookies"; | 31 const char kCookiesKey[] = "cookies"; |
32 const char kDownloadsKey[] = "downloads"; | 32 const char kDownloadsKey[] = "downloads"; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return BrowsingDataRemover::REMOVE_PLUGIN_DATA; | 273 return BrowsingDataRemover::REMOVE_PLUGIN_DATA; |
274 } | 274 } |
275 | 275 |
276 int RemovePasswordsFunction::GetRemovalMask() const { | 276 int RemovePasswordsFunction::GetRemovalMask() const { |
277 return BrowsingDataRemover::REMOVE_PASSWORDS; | 277 return BrowsingDataRemover::REMOVE_PASSWORDS; |
278 } | 278 } |
279 | 279 |
280 int RemoveWebSQLFunction::GetRemovalMask() const { | 280 int RemoveWebSQLFunction::GetRemovalMask() const { |
281 return BrowsingDataRemover::REMOVE_WEBSQL; | 281 return BrowsingDataRemover::REMOVE_WEBSQL; |
282 } | 282 } |
OLD | NEW |