OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 private: | 141 private: |
142 friend class WebPluginContainer; | 142 friend class WebPluginContainer; |
143 | 143 |
144 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame, | 144 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame, |
145 WebPluginDelegate* delegate, const GURL& plugin_url, | 145 WebPluginDelegate* delegate, const GURL& plugin_url, |
146 bool load_manually, const std::string& mime_type, | 146 bool load_manually, const std::string& mime_type, |
147 int arg_count, char** arg_names, char** arg_values); | 147 int arg_count, char** arg_names, char** arg_values); |
148 | 148 |
149 // WebPlugin implementation: | 149 // WebPlugin implementation: |
150 void SetWindow(gfx::NativeView window, HANDLE pump_messages_event); | 150 bool SetWindow(gfx::NativeView window, HANDLE pump_messages_event); |
151 | 151 |
152 // Given a (maybe partial) url, completes using the base url. | 152 // Given a (maybe partial) url, completes using the base url. |
153 bool CompleteURL(const std::string& url_in, std::string* url_out); | 153 bool CompleteURL(const std::string& url_in, std::string* url_out); |
154 | 154 |
155 // Executes the script passed in. The notify_needed and notify_data arguments | 155 // Executes the script passed in. The notify_needed and notify_data arguments |
156 // are passed in by the plugin process. These indicate whether the plugin | 156 // are passed in by the plugin process. These indicate whether the plugin |
157 // expects a notification on script execution. We pass them back to the | 157 // expects a notification on script execution. We pass them back to the |
158 // plugin as is. This avoids having to track the notification arguments | 158 // plugin as is. This avoids having to track the notification arguments |
159 // in the plugin process. | 159 // in the plugin process. |
160 bool ExecuteScript(const std::string& url, const std::wstring& script, | 160 bool ExecuteScript(const std::string& url, const std::wstring& script, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // Holds the list of argument names passed to the plugin. | 357 // Holds the list of argument names passed to the plugin. |
358 std::vector<std::string> arg_names_; | 358 std::vector<std::string> arg_names_; |
359 | 359 |
360 // Holds the list of argument values passed to the plugin. | 360 // Holds the list of argument values passed to the plugin. |
361 std::vector<std::string> arg_values_; | 361 std::vector<std::string> arg_values_; |
362 | 362 |
363 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 363 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
364 }; | 364 }; |
365 | 365 |
366 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 366 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
OLD | NEW |