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 class ClearContentSettingsFunction : public SyncExtensionFunction { | 17 class ClearContentSettingsFunction : public SyncExtensionFunction { |
Aaron Boodman
2012/05/11 21:18:26
If you do more of these, can you put them in the '
chebert
2012/05/12 01:24:42
Done.
| |
18 public: | 18 public: |
19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear") | 19 DECLARE_EXTENSION_FUNCTION_NAME("contentSettings.clear") |
20 | 20 |
21 protected: | 21 protected: |
22 virtual ~ClearContentSettingsFunction() {} | 22 virtual ~ClearContentSettingsFunction() {} |
23 | 23 |
24 // ExtensionFunction: | 24 // ExtensionFunction: |
25 virtual bool RunImpl() OVERRIDE; | 25 virtual bool RunImpl() OVERRIDE; |
26 }; | 26 }; |
27 | 27 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 61 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
62 ContentSettingsGetResourceIdentifiers); | 62 ContentSettingsGetResourceIdentifiers); |
63 | 63 |
64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); | 64 void OnGotPluginGroups(const std::vector<webkit::npapi::PluginGroup>& groups); |
65 | 65 |
66 // Used to override the global plugin list in tests. | 66 // Used to override the global plugin list in tests. |
67 static void SetPluginGroupsForTesting( | 67 static void SetPluginGroupsForTesting( |
68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); | 68 const std::vector<webkit::npapi::PluginGroup>* plugin_groups); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 71 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H __ |
OLD | NEW |