| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Clear API functions, which entail | 5 // Defines the Chrome Extensions Clear 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 | 7 // honest, are the same thing), as specified in |
| 8 // chrome/common/extensions/api/extension_api.json. | 8 // chrome/common/extensions/api/. |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/extension_clear_api.h" | 10 #include "chrome/browser/extensions/extension_clear_api.h" |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/browsing_data_remover.h" | 15 #include "chrome/browser/browsing_data_remover.h" |
| 16 #include "chrome/browser/extensions/extension_clear_api_constants.h" | 16 #include "chrome/browser/extensions/extension_clear_api_constants.h" |
| 17 #include "chrome/browser/plugin_data_remover_helper.h" | 17 #include "chrome/browser/plugin_data_remover_helper.h" |
| 18 #include "chrome/browser/plugin_prefs.h" | 18 #include "chrome/browser/plugin_prefs.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 return BrowsingDataRemover::REMOVE_FORM_DATA; | 171 return BrowsingDataRemover::REMOVE_FORM_DATA; |
| 172 } | 172 } |
| 173 | 173 |
| 174 int ClearHistoryFunction::GetRemovalMask() const { | 174 int ClearHistoryFunction::GetRemovalMask() const { |
| 175 return BrowsingDataRemover::REMOVE_HISTORY; | 175 return BrowsingDataRemover::REMOVE_HISTORY; |
| 176 } | 176 } |
| 177 | 177 |
| 178 int ClearPasswordsFunction::GetRemovalMask() const { | 178 int ClearPasswordsFunction::GetRemovalMask() const { |
| 179 return BrowsingDataRemover::REMOVE_CACHE; | 179 return BrowsingDataRemover::REMOVE_CACHE; |
| 180 } | 180 } |
| OLD | NEW |