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

Side by Side Diff: content/public/browser/plugin_service.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
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 CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const std::string& mime_type, 71 const std::string& mime_type,
72 bool allow_wildcard, 72 bool allow_wildcard,
73 std::vector<webkit::WebPluginInfo>* info, 73 std::vector<webkit::WebPluginInfo>* info,
74 std::vector<std::string>* actual_mime_types) = 0; 74 std::vector<std::string>* actual_mime_types) = 0;
75 75
76 // Gets plugin info for an individual plugin and filters the plugins using 76 // Gets plugin info for an individual plugin and filters the plugins using
77 // the |context| and renderer IDs. This will report whether the data is stale 77 // the |context| and renderer IDs. This will report whether the data is stale
78 // via |is_stale| and returns whether or not the plugin can be found. 78 // via |is_stale| and returns whether or not the plugin can be found.
79 virtual bool GetPluginInfo(int render_process_id, 79 virtual bool GetPluginInfo(int render_process_id,
80 int render_view_id, 80 int render_view_id,
81 const ResourceContext& context, 81 ResourceContext* context,
82 const GURL& url, 82 const GURL& url,
83 const GURL& page_url, 83 const GURL& page_url,
84 const std::string& mime_type, 84 const std::string& mime_type,
85 bool allow_wildcard, 85 bool allow_wildcard,
86 bool* is_stale, 86 bool* is_stale,
87 webkit::WebPluginInfo* info, 87 webkit::WebPluginInfo* info,
88 std::string* actual_mime_type) = 0; 88 std::string* actual_mime_type) = 0;
89 89
90 // Get plugin info by plugin path (including disabled plugins). Returns true 90 // Get plugin info by plugin path (including disabled plugins). Returns true
91 // if the plugin is found and WebPluginInfo has been filled in |info|. This 91 // if the plugin is found and WebPluginInfo has been filled in |info|. This
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // TODO(dpranke): This should be private. 130 // TODO(dpranke): This should be private.
131 virtual webkit::npapi::PluginList* GetPluginList() = 0; 131 virtual webkit::npapi::PluginList* GetPluginList() = 0;
132 132
133 virtual void SetPluginListForTesting( 133 virtual void SetPluginListForTesting(
134 webkit::npapi::PluginList* plugin_list) = 0; 134 webkit::npapi::PluginList* plugin_list) = 0;
135 }; 135 };
136 136
137 } // namespace content 137 } // namespace content
138 138
139 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ 139 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/browser/plugin_data_remover.h ('k') | content/public/browser/resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698