| 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; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<webkit::WebPluginInfo>& plugins); |
| 71 | |
| 72 // Used to override the global plugin list in tests. | |
| 73 static void SetPluginsForTesting( | |
| 74 const std::vector<webkit::WebPluginInfo>* plugins); | |
| 75 }; | 71 }; |
| 76 | 72 |
| 77 } // namespace extensions | 73 } // namespace extensions |
| 78 | 74 |
| 79 #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 |