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

Side by Side Diff: content/browser/plugin_service_impl.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_service_filter.h ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This class responds to requests from renderers for the list of plugins, and 5 // This class responds to requests from renderers for the list of plugins, and
6 // also a proxy object for plugin instances. 6 // also a proxy object for plugin instances.
7 7
8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 8 #ifndef CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 9 #define CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
10 #pragma once 10 #pragma once
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void Init() OVERRIDE; 69 virtual void Init() OVERRIDE;
70 virtual void StartWatchingPlugins() OVERRIDE; 70 virtual void StartWatchingPlugins() OVERRIDE;
71 virtual bool GetPluginInfoArray( 71 virtual bool GetPluginInfoArray(
72 const GURL& url, 72 const GURL& url,
73 const std::string& mime_type, 73 const std::string& mime_type,
74 bool allow_wildcard, 74 bool allow_wildcard,
75 std::vector<webkit::WebPluginInfo>* info, 75 std::vector<webkit::WebPluginInfo>* info,
76 std::vector<std::string>* actual_mime_types) OVERRIDE; 76 std::vector<std::string>* actual_mime_types) OVERRIDE;
77 virtual bool GetPluginInfo(int render_process_id, 77 virtual bool GetPluginInfo(int render_process_id,
78 int render_view_id, 78 int render_view_id,
79 const content::ResourceContext& context, 79 content::ResourceContext* context,
80 const GURL& url, 80 const GURL& url,
81 const GURL& page_url, 81 const GURL& page_url,
82 const std::string& mime_type, 82 const std::string& mime_type,
83 bool allow_wildcard, 83 bool allow_wildcard,
84 bool* is_stale, 84 bool* is_stale,
85 webkit::WebPluginInfo* info, 85 webkit::WebPluginInfo* info,
86 std::string* actual_mime_type) OVERRIDE; 86 std::string* actual_mime_type) OVERRIDE;
87 virtual bool GetPluginInfoByPath(const FilePath& plugin_path, 87 virtual bool GetPluginInfoByPath(const FilePath& plugin_path,
88 webkit::WebPluginInfo* info) OVERRIDE; 88 webkit::WebPluginInfo* info) OVERRIDE;
89 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE; 89 virtual void GetPlugins(const GetPluginsCallback& callback) OVERRIDE;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 PluginProcessHost::Client* client, 174 PluginProcessHost::Client* client,
175 const std::vector<webkit::WebPluginInfo>&); 175 const std::vector<webkit::WebPluginInfo>&);
176 // Helper so we can do the plugin lookup on the FILE thread. 176 // Helper so we can do the plugin lookup on the FILE thread.
177 void GetAllowedPluginForOpenChannelToPlugin( 177 void GetAllowedPluginForOpenChannelToPlugin(
178 int render_process_id, 178 int render_process_id,
179 int render_view_id, 179 int render_view_id,
180 const GURL& url, 180 const GURL& url,
181 const GURL& page_url, 181 const GURL& page_url,
182 const std::string& mime_type, 182 const std::string& mime_type,
183 PluginProcessHost::Client* client, 183 PluginProcessHost::Client* client,
184 const content::ResourceContext* resource_context); 184 content::ResourceContext* resource_context);
185 185
186 // Helper so we can finish opening the channel after looking up the 186 // Helper so we can finish opening the channel after looking up the
187 // plugin. 187 // plugin.
188 void FinishOpenChannelToPlugin( 188 void FinishOpenChannelToPlugin(
189 const FilePath& plugin_path, 189 const FilePath& plugin_path,
190 PluginProcessHost::Client* client); 190 PluginProcessHost::Client* client);
191 191
192 #if defined(OS_POSIX) && !defined(OS_OPENBSD) 192 #if defined(OS_POSIX) && !defined(OS_OPENBSD)
193 // Registers a new FilePathWatcher for a given path. 193 // Registers a new FilePathWatcher for a given path.
194 static void RegisterFilePathWatcher( 194 static void RegisterFilePathWatcher(
(...skipping 30 matching lines...) Expand all
225 std::set<PluginProcessHost::Client*> pending_plugin_clients_; 225 std::set<PluginProcessHost::Client*> pending_plugin_clients_;
226 226
227 #if defined(OS_POSIX) 227 #if defined(OS_POSIX)
228 scoped_refptr<PluginLoaderPosix> plugin_loader_; 228 scoped_refptr<PluginLoaderPosix> plugin_loader_;
229 #endif 229 #endif
230 230
231 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl); 231 DISALLOW_COPY_AND_ASSIGN(PluginServiceImpl);
232 }; 232 };
233 233
234 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_ 234 #endif // CONTENT_BROWSER_PLUGIN_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_filter.h ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698