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/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
9 | 9 |
10 class PluginFinder; | 10 class PluginFinder; |
11 | 11 |
12 namespace webkit { | 12 namespace content { |
13 struct WebPluginInfo; | 13 struct WebPluginInfo; |
14 } | 14 } |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 class ContentSettingsContentSettingClearFunction | 18 class ContentSettingsContentSettingClearFunction |
19 : public SyncExtensionFunction { | 19 : public SyncExtensionFunction { |
20 public: | 20 public: |
21 DECLARE_EXTENSION_FUNCTION("contentSettings.clear", CONTENTSETTINGS_CLEAR) | 21 DECLARE_EXTENSION_FUNCTION("contentSettings.clear", CONTENTSETTINGS_CLEAR) |
22 | 22 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // ExtensionFunction: | 61 // ExtensionFunction: |
62 virtual bool RunImpl() OVERRIDE; | 62 virtual bool RunImpl() OVERRIDE; |
63 | 63 |
64 private: | 64 private: |
65 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, | 65 FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, |
66 ContentSettingsGetResourceIdentifiers); | 66 ContentSettingsGetResourceIdentifiers); |
67 | 67 |
68 // Callback method that gets executed when |plugins| | 68 // Callback method that gets executed when |plugins| |
69 // are asynchronously fetched. | 69 // are asynchronously fetched. |
70 void OnGotPlugins(const std::vector<webkit::WebPluginInfo>& plugins); | 70 void OnGotPlugins(const std::vector<content::WebPluginInfo>& plugins); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace extensions | 73 } // namespace extensions |
74 | 74 |
75 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
_ |
OLD | NEW |