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 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 Loading... |
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 Loading... |
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_ |
OLD | NEW |