| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 private: | 142 private: |
| 143 friend class WebPluginContainer; | 143 friend class WebPluginContainer; |
| 144 | 144 |
| 145 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame, | 145 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame, |
| 146 WebPluginDelegate* delegate, const GURL& plugin_url, | 146 WebPluginDelegate* delegate, const GURL& plugin_url, |
| 147 bool load_manually, const std::string& mime_type, | 147 bool load_manually, const std::string& mime_type, |
| 148 int arg_count, char** arg_names, char** arg_values); | 148 int arg_count, char** arg_names, char** arg_values); |
| 149 | 149 |
| 150 // WebPlugin implementation: | 150 // WebPlugin implementation: |
| 151 void SetWindow(gfx::PluginWindowHandle window); | 151 void SetWindow(gfx::PluginWindowHandle window); |
| 152 void WillDestroyWindow(gfx::PluginWindowHandle window) { } | 152 void WillDestroyWindow(gfx::PluginWindowHandle window); |
| 153 #if defined(OS_WIN) | 153 #if defined(OS_WIN) |
| 154 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } | 154 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } |
| 155 #endif | 155 #endif |
| 156 | 156 |
| 157 // Given a (maybe partial) url, completes using the base url. | 157 // Given a (maybe partial) url, completes using the base url. |
| 158 bool CompleteURL(const std::string& url_in, std::string* url_out); | 158 bool CompleteURL(const std::string& url_in, std::string* url_out); |
| 159 | 159 |
| 160 // Executes the script passed in. The notify_needed and notify_data arguments | 160 // Executes the script passed in. The notify_needed and notify_data arguments |
| 161 // are passed in by the plugin process. These indicate whether the plugin | 161 // are passed in by the plugin process. These indicate whether the plugin |
| 162 // expects a notification on script execution. We pass them back to the | 162 // expects a notification on script execution. We pass them back to the |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 365 |
| 366 // Holds the list of argument values passed to the plugin. | 366 // Holds the list of argument values passed to the plugin. |
| 367 std::vector<std::string> arg_values_; | 367 std::vector<std::string> arg_values_; |
| 368 | 368 |
| 369 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; | 369 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
| 370 | 370 |
| 371 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 371 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 372 }; | 372 }; |
| 373 | 373 |
| 374 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 374 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |