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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const GURL& url, | 63 const GURL& url, |
64 const std::string& mime_type, | 64 const std::string& mime_type, |
65 bool allow_wildcard, | 65 bool allow_wildcard, |
66 std::vector<WebPluginInfo>* info, | 66 std::vector<WebPluginInfo>* info, |
67 std::vector<std::string>* actual_mime_types) = 0; | 67 std::vector<std::string>* actual_mime_types) = 0; |
68 | 68 |
69 // Gets plugin info for an individual plugin and filters the plugins using | 69 // Gets plugin info for an individual plugin and filters the plugins using |
70 // the |context| and renderer IDs. This will report whether the data is stale | 70 // the |context| and renderer IDs. This will report whether the data is stale |
71 // via |is_stale| and returns whether or not the plugin can be found. | 71 // via |is_stale| and returns whether or not the plugin can be found. |
72 virtual bool GetPluginInfo(int render_process_id, | 72 virtual bool GetPluginInfo(int render_process_id, |
73 int render_view_id, | 73 int render_frame_id, |
74 ResourceContext* context, | 74 ResourceContext* context, |
75 const GURL& url, | 75 const GURL& url, |
76 const GURL& page_url, | 76 const GURL& page_url, |
77 const std::string& mime_type, | 77 const std::string& mime_type, |
78 bool allow_wildcard, | 78 bool allow_wildcard, |
79 bool* is_stale, | 79 bool* is_stale, |
80 WebPluginInfo* info, | 80 WebPluginInfo* info, |
81 std::string* actual_mime_type) = 0; | 81 std::string* actual_mime_type) = 0; |
82 | 82 |
83 // Get plugin info by plugin path (including disabled plugins). Returns true | 83 // Get plugin info by plugin path (including disabled plugins). Returns true |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // This can be called from any thread. | 157 // This can be called from any thread. |
158 virtual bool GetPluginInfoFromWindow(HWND window, | 158 virtual bool GetPluginInfoFromWindow(HWND window, |
159 base::string16* plugin_name, | 159 base::string16* plugin_name, |
160 base::string16* plugin_version) = 0; | 160 base::string16* plugin_version) = 0; |
161 #endif | 161 #endif |
162 }; | 162 }; |
163 | 163 |
164 } // namespace content | 164 } // namespace content |
165 | 165 |
166 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ | 166 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_SERVICE_H_ |
OLD | NEW |