| Index: content/browser/plugin_service_impl.h
|
| ===================================================================
|
| --- content/browser/plugin_service_impl.h (revision 163632)
|
| +++ content/browser/plugin_service_impl.h (working copy)
|
| @@ -36,43 +36,41 @@
|
| #include "base/files/file_path_watcher.h"
|
| #endif
|
|
|
| -class PluginDirWatcherDelegate;
|
| -class PluginLoaderPosix;
|
| -
|
| namespace base {
|
| class MessageLoopProxy;
|
| }
|
|
|
| +namespace webkit {
|
| +namespace npapi {
|
| +class PluginList;
|
| +}
|
| +}
|
| +
|
| namespace content {
|
| class BrowserContext;
|
| +class PluginDirWatcherDelegate;
|
| +class PluginLoaderPosix;
|
| class PluginServiceFilter;
|
| class ResourceContext;
|
| struct PepperPluginInfo;
|
| -}
|
|
|
| -namespace webkit {
|
| -namespace npapi {
|
| -class PluginList;
|
| -}
|
| -}
|
| -
|
| // base::Bind() has limited arity, and the filter-related methods tend to
|
| // surpass that limit.
|
| struct PluginServiceFilterParams {
|
| int render_process_id;
|
| int render_view_id;
|
| GURL page_url;
|
| - content::ResourceContext* resource_context;
|
| + ResourceContext* resource_context;
|
| };
|
|
|
| class CONTENT_EXPORT PluginServiceImpl
|
| - : NON_EXPORTED_BASE(public content::PluginService),
|
| + : NON_EXPORTED_BASE(public PluginService),
|
| public base::WaitableEventWatcher::Delegate {
|
| public:
|
| // Returns the PluginServiceImpl singleton.
|
| static PluginServiceImpl* GetInstance();
|
|
|
| - // content::PluginService implementation:
|
| + // PluginService implementation:
|
| virtual void Init() OVERRIDE;
|
| virtual void StartWatchingPlugins() OVERRIDE;
|
| virtual bool GetPluginInfoArray(
|
| @@ -83,7 +81,7 @@
|
| std::vector<std::string>* actual_mime_types) OVERRIDE;
|
| virtual bool GetPluginInfo(int render_process_id,
|
| int render_view_id,
|
| - content::ResourceContext* context,
|
| + ResourceContext* context,
|
| const GURL& url,
|
| const GURL& page_url,
|
| const std::string& mime_type,
|
| @@ -95,10 +93,10 @@
|
| webkit::WebPluginInfo* info) OVERRIDE;
|
| virtual string16 GetPluginDisplayNameByPath(const FilePath& path) OVERRIDE;
|
| virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE;
|
| - virtual content::PepperPluginInfo* GetRegisteredPpapiPluginInfo(
|
| + virtual PepperPluginInfo* GetRegisteredPpapiPluginInfo(
|
| const FilePath& plugin_path) OVERRIDE;
|
| - virtual void SetFilter(content::PluginServiceFilter* filter) OVERRIDE;
|
| - virtual content::PluginServiceFilter* GetFilter() OVERRIDE;
|
| + virtual void SetFilter(PluginServiceFilter* filter) OVERRIDE;
|
| + virtual PluginServiceFilter* GetFilter() OVERRIDE;
|
| virtual void ForcePluginShutdown(const FilePath& plugin_path) OVERRIDE;
|
| virtual bool IsPluginUnstable(const FilePath& plugin_path) OVERRIDE;
|
| virtual void RefreshPlugins() OVERRIDE;
|
| @@ -196,7 +194,7 @@
|
| const GURL& page_url,
|
| const std::string& mime_type,
|
| PluginProcessHost::Client* client,
|
| - content::ResourceContext* resource_context);
|
| + ResourceContext* resource_context);
|
|
|
| // Helper so we can finish opening the channel after looking up the
|
| // plugin.
|
| @@ -230,10 +228,10 @@
|
| scoped_refptr<PluginDirWatcherDelegate> file_watcher_delegate_;
|
| #endif
|
|
|
| - std::vector<content::PepperPluginInfo> ppapi_plugins_;
|
| + std::vector<PepperPluginInfo> ppapi_plugins_;
|
|
|
| // Weak pointer; outlives us.
|
| - content::PluginServiceFilter* filter_;
|
| + PluginServiceFilter* filter_;
|
|
|
| std::set<PluginProcessHost::Client*> pending_plugin_clients_;
|
|
|
| @@ -251,4 +249,6 @@
|
| DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
|
| };
|
|
|
| +} // namespace content
|
| +
|
| #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
|
|
|