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_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 | 10 |
11 namespace webkit { | 11 namespace webkit { |
12 namespace npapi { | 12 namespace npapi { |
13 class PluginGroup; | 13 class PluginGroup; |
14 } | 14 } |
15 } | 15 } |
16 | 16 |
| 17 namespace extensions { |
| 18 |
17 class ClearContentSettingsFunction : public SyncExtensionFunction { | 19 class ClearContentSettingsFunction : public SyncExtensionFunction { |
18 public: | 20 public: |
19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear") | 21 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear") |
20 | 22 |
21 protected: | 23 protected: |
22 virtual ~ClearContentSettingsFunction() {} | 24 virtual ~ClearContentSettingsFunction() {} |
23 | 25 |
24 // ExtensionFunction: | 26 // ExtensionFunction: |
25 virtual bool RunImpl() OVERRIDE; | 27 virtual bool RunImpl() OVERRIDE; |
26 }; | 28 }; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 63 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
62 ContentSettingsGetResourceIdentifiers); | 64 ContentSettingsGetResourceIdentifiers); |
63 | 65 |
64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); | 66 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); |
65 | 67 |
66 // Used to override the global plugin list in tests. | 68 // Used to override the global plugin list in tests. |
67 static void SetPluginGroupsForTesting( | 69 static void SetPluginGroupsForTesting( |
68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); | 70 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); |
69 }; | 71 }; |
70 | 72 |
71 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 73 } // namespace extensions |
| 74 |
| 75 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
__ |
OLD | NEW |