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_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
9 | 9 |
10 class PluginFinder; | 10 class PluginFinder; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class ContentSettingsContentSettingGetResourceIdentifiersFunction | 54 class ContentSettingsContentSettingGetResourceIdentifiersFunction |
55 : public ChromeAsyncExtensionFunction { | 55 : public ChromeAsyncExtensionFunction { |
56 public: | 56 public: |
57 DECLARE_EXTENSION_FUNCTION("contentSettings.getResourceIdentifiers", | 57 DECLARE_EXTENSION_FUNCTION("contentSettings.getResourceIdentifiers", |
58 CONTENTSETTINGS_GETRESOURCEIDENTIFIERS) | 58 CONTENTSETTINGS_GETRESOURCEIDENTIFIERS) |
59 | 59 |
60 protected: | 60 protected: |
61 virtual ~ContentSettingsContentSettingGetResourceIdentifiersFunction() {} | 61 virtual ~ContentSettingsContentSettingGetResourceIdentifiersFunction() {} |
62 | 62 |
63 // ExtensionFunction: | 63 // ExtensionFunction: |
64 virtual bool RunImpl() OVERRIDE; | 64 virtual bool RunAsync() OVERRIDE; |
65 | 65 |
66 private: | 66 private: |
67 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 67 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
68 ContentSettingsGetResourceIdentifiers); | 68 ContentSettingsGetResourceIdentifiers); |
69 | 69 |
70 // Callback method that gets executed when |plugins| | 70 // Callback method that gets executed when |plugins| |
71 // are asynchronously fetched. | 71 // are asynchronously fetched. |
72 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); | 72 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace extensions | 75 } // namespace extensions |
76 | 76 |
77 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
_ | 77 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
_ |
OLD | NEW |