| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/glue/plugins/pepper_webplugin_impl.h" | 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "third_party/ppapi/c/pp_var.h" | 9 #include "third_party/ppapi/c/pp_var.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" |
| 11 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
| 12 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 12 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
| 13 #include "webkit/glue/plugins/pepper_plugin_module.h" | 13 #include "webkit/glue/plugins/pepper_plugin_module.h" |
| 14 #include "webkit/glue/plugins/pepper_var.h" | 14 #include "webkit/glue/plugins/pepper_var.h" |
| 15 | 15 |
| 16 using WebKit::WebCanvas; | 16 using WebKit::WebCanvas; |
| 17 using WebKit::WebPluginContainer; | 17 using WebKit::WebPluginContainer; |
| 18 using WebKit::WebPluginParams; | 18 using WebKit::WebPluginParams; |
| 19 using WebKit::WebRect; | 19 using WebKit::WebRect; |
| 20 using WebKit::WebVector; | 20 using WebKit::WebVector; |
| 21 | 21 |
| 22 namespace pepper { | 22 namespace pepper { |
| 23 | 23 |
| 24 WebPluginImpl::WebPluginImpl( | 24 WebPluginImpl::WebPluginImpl( |
| 25 PluginModule* plugin_module, | 25 PluginModule* plugin_module, |
| 26 WebKit::WebFrame* frame, | |
| 27 const WebPluginParams& params, | 26 const WebPluginParams& params, |
| 28 const base::WeakPtr<PluginDelegate>& plugin_delegate) | 27 const base::WeakPtr<PluginDelegate>& plugin_delegate) |
| 29 : init_data_(new InitData()) { | 28 : init_data_(new InitData()) { |
| 30 DCHECK(plugin_module); | 29 DCHECK(plugin_module); |
| 31 init_data_->module = plugin_module; | 30 init_data_->module = plugin_module; |
| 32 init_data_->delegate = plugin_delegate; | 31 init_data_->delegate = plugin_delegate; |
| 33 for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 32 for (size_t i = 0; i < params.attributeNames.size(); ++i) { |
| 34 init_data_->arg_names.push_back(params.attributeNames[i].utf8()); | 33 init_data_->arg_names.push_back(params.attributeNames[i].utf8()); |
| 35 init_data_->arg_values.push_back(params.attributeValues[i].utf8()); | 34 init_data_->arg_values.push_back(params.attributeValues[i].utf8()); |
| 36 } | 35 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void* notify_data) { | 118 void* notify_data) { |
| 120 } | 119 } |
| 121 | 120 |
| 122 void WebPluginImpl::didFailLoadingFrameRequest( | 121 void WebPluginImpl::didFailLoadingFrameRequest( |
| 123 const WebKit::WebURL& url, | 122 const WebKit::WebURL& url, |
| 124 void* notify_data, | 123 void* notify_data, |
| 125 const WebKit::WebURLError& error) { | 124 const WebKit::WebURLError& error) { |
| 126 } | 125 } |
| 127 | 126 |
| 128 } // namespace pepper | 127 } // namespace pepper |
| OLD | NEW |