OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/plugin/webplugin_delegate_stub.h" | 5 #include "chrome/plugin/webplugin_delegate_stub.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/common/child_process_logging.h" | 10 #include "chrome/common/child_process_logging.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/plugin_messages.h" | 12 #include "chrome/common/plugin_messages.h" |
13 #include "chrome/plugin/npobject_stub.h" | 13 #include "chrome/plugin/npobject_stub.h" |
14 #include "chrome/plugin/plugin_channel.h" | 14 #include "chrome/plugin/plugin_channel.h" |
15 #include "chrome/plugin/plugin_thread.h" | 15 #include "chrome/plugin/plugin_thread.h" |
16 #include "chrome/plugin/webplugin_proxy.h" | 16 #include "chrome/plugin/webplugin_proxy.h" |
17 #include "printing/native_metafile.h" | 17 #include "printing/native_metafile.h" |
18 #include "third_party/npapi/bindings/npapi.h" | 18 #include "third_party/npapi/bindings/npapi.h" |
19 #include "third_party/npapi/bindings/npruntime.h" | 19 #include "third_party/npapi/bindings/npruntime.h" |
20 #include "skia/ext/platform_device.h" | 20 #include "skia/ext/platform_device.h" |
21 #include "webkit/api/public/WebBindings.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
22 #include "webkit/api/public/WebCursorInfo.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" |
23 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | 23 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
24 #include "webkit/glue/webcursor.h" | 24 #include "webkit/glue/webcursor.h" |
25 | 25 |
26 using WebKit::WebBindings; | 26 using WebKit::WebBindings; |
27 using WebKit::WebCursorInfo; | 27 using WebKit::WebCursorInfo; |
28 using webkit_glue::WebPlugin; | 28 using webkit_glue::WebPlugin; |
29 using webkit_glue::WebPluginResourceClient; | 29 using webkit_glue::WebPluginResourceClient; |
30 | 30 |
31 class FinishDestructionTask : public Task { | 31 class FinishDestructionTask : public Task { |
32 public: | 32 public: |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 366 |
367 void WebPluginDelegateStub::OnHandleURLRequestReply( | 367 void WebPluginDelegateStub::OnHandleURLRequestReply( |
368 const PluginMsg_URLRequestReply_Params& params) { | 368 const PluginMsg_URLRequestReply_Params& params) { |
369 WebPluginResourceClient* resource_client = | 369 WebPluginResourceClient* resource_client = |
370 delegate_->CreateResourceClient(params.resource_id, params.url, | 370 delegate_->CreateResourceClient(params.resource_id, params.url, |
371 params.notify_needed, | 371 params.notify_needed, |
372 params.notify_data, | 372 params.notify_data, |
373 params.stream); | 373 params.stream); |
374 webplugin_->OnResourceCreated(params.resource_id, resource_client); | 374 webplugin_->OnResourceCreated(params.resource_id, resource_client); |
375 } | 375 } |
OLD | NEW |