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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_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 #include "webkit/plugins/npapi/plugin_group.h" | |
jam
2011/09/21 00:04:51
nit: can you just forward declare instead?
| |
10 | 11 |
11 namespace webkit { | 12 class PluginService; |
jam
2011/09/21 00:04:51
nit: doesn't look like this is needed
| |
12 namespace npapi { | |
13 | |
14 class PluginList; | |
15 | |
16 } | |
17 } | |
18 | 13 |
19 class ClearContentSettingsFunction : public SyncExtensionFunction { | 14 class ClearContentSettingsFunction : public SyncExtensionFunction { |
20 public: | 15 public: |
21 virtual bool RunImpl(); | 16 virtual bool RunImpl(); |
22 DECLARE_EXTENSION_FUNCTION_NAME( | 17 DECLARE_EXTENSION_FUNCTION_NAME( |
23 "experimental.contentSettings.clear") | 18 "experimental.contentSettings.clear") |
24 }; | 19 }; |
25 | 20 |
26 class GetContentSettingFunction : public SyncExtensionFunction { | 21 class GetContentSettingFunction : public SyncExtensionFunction { |
27 public: | 22 public: |
(...skipping 12 matching lines...) Expand all Loading... | |
40 class GetResourceIdentifiersFunction : public AsyncExtensionFunction { | 35 class GetResourceIdentifiersFunction : public AsyncExtensionFunction { |
41 public: | 36 public: |
42 virtual bool RunImpl(); | 37 virtual bool RunImpl(); |
43 DECLARE_EXTENSION_FUNCTION_NAME( | 38 DECLARE_EXTENSION_FUNCTION_NAME( |
44 "experimental.contentSettings.getResourceIdentifiers") | 39 "experimental.contentSettings.getResourceIdentifiers") |
45 | 40 |
46 private: | 41 private: |
47 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 42 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
48 ContentSettingsGetResourceIdentifiers); | 43 ContentSettingsGetResourceIdentifiers); |
49 | 44 |
50 void GetPluginsOnFileThread(); | 45 void OnGotPluginGroups(std::vector<webkit::npapi::PluginGroup> groups); |
jam
2011/09/21 00:04:51
nit: const ref
| |
51 | |
52 // Used to override the global plugin list in tests. | |
53 static void SetPluginListForTesting(webkit::npapi::PluginList* plugin_list); | |
54 }; | 46 }; |
55 | 47 |
56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ | 48 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_API_H__ |
OLD | NEW |