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 the extension API JSON. |
8 // chrome/common/extensions/api/extension_api.json. | |
9 | 8 |
10 #include "chrome/browser/extensions/extension_clear_api.h" | 9 #include "chrome/browser/extensions/extension_clear_api.h" |
11 | 10 |
12 #include <string> | 11 #include <string> |
13 | 12 |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "chrome/browser/browsing_data_remover.h" | 14 #include "chrome/browser/browsing_data_remover.h" |
16 #include "chrome/browser/extensions/extension_clear_api_constants.h" | 15 #include "chrome/browser/extensions/extension_clear_api_constants.h" |
17 #include "chrome/browser/plugin_data_remover_helper.h" | 16 #include "chrome/browser/plugin_data_remover_helper.h" |
18 #include "chrome/browser/plugin_prefs.h" | 17 #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; | 170 return BrowsingDataRemover::REMOVE_FORM_DATA; |
172 } | 171 } |
173 | 172 |
174 int ClearHistoryFunction::GetRemovalMask() const { | 173 int ClearHistoryFunction::GetRemovalMask() const { |
175 return BrowsingDataRemover::REMOVE_HISTORY; | 174 return BrowsingDataRemover::REMOVE_HISTORY; |
176 } | 175 } |
177 | 176 |
178 int ClearPasswordsFunction::GetRemovalMask() const { | 177 int ClearPasswordsFunction::GetRemovalMask() const { |
179 return BrowsingDataRemover::REMOVE_CACHE; | 178 return BrowsingDataRemover::REMOVE_CACHE; |
180 } | 179 } |
OLD | NEW |