Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_api.h

Issue 10910168: Separate plugin_metadata from plugin_installer, thread-safe plugin_finder (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: .. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 __
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/extensions/api/content_settings/content_settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698