| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58  protected: | 58  protected: | 
| 59   virtual ~GetResourceIdentifiersFunction() {} | 59   virtual ~GetResourceIdentifiersFunction() {} | 
| 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 both |finder| and |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                     PluginFinder* finder); |  | 
| 72 | 71 | 
| 73   // Used to override the global plugin list in tests. | 72   // Used to override the global plugin list in tests. | 
| 74   static void SetPluginsForTesting( | 73   static void SetPluginsForTesting( | 
| 75       const std::vector<webkit::WebPluginInfo>* plugins); | 74       const std::vector<webkit::WebPluginInfo>* plugins); | 
| 76 }; | 75 }; | 
| 77 | 76 | 
| 78 }  // namespace extensions | 77 }  // namespace extensions | 
| 79 | 78 | 
| 80 #endif  // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
    __ | 79 #endif  // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_API_H
    __ | 
| OLD | NEW | 
|---|