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 #include "content/plugin/webplugin_delegate_stub.h" | 5 #include "content/plugin/webplugin_delegate_stub.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "content/common_child/plugin_messages.h" | 12 #include "content/child/plugin_messages.h" |
13 #include "content/plugin/plugin_channel.h" | 13 #include "content/plugin/plugin_channel.h" |
14 #include "content/plugin/plugin_thread.h" | 14 #include "content/plugin/plugin_thread.h" |
15 #include "content/plugin/webplugin_proxy.h" | 15 #include "content/plugin/webplugin_proxy.h" |
16 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
17 #include "content/public/common/content_constants.h" | 17 #include "content/public/common/content_constants.h" |
18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
19 #include "third_party/npapi/bindings/npapi.h" | |
20 #include "third_party/npapi/bindings/npruntime.h" | |
21 #include "skia/ext/platform_device.h" | 19 #include "skia/ext/platform_device.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 22 #include "third_party/npapi/bindings/npapi.h" |
| 23 #include "third_party/npapi/bindings/npruntime.h" |
24 #include "webkit/common/cursors/webcursor.h" | 24 #include "webkit/common/cursors/webcursor.h" |
25 #include "webkit/plugins/npapi/plugin_instance.h" | 25 #include "webkit/plugins/npapi/plugin_instance.h" |
26 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 26 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
27 | 27 |
28 using WebKit::WebBindings; | 28 using WebKit::WebBindings; |
29 using WebKit::WebCursorInfo; | 29 using WebKit::WebCursorInfo; |
30 using webkit::npapi::WebPlugin; | 30 using webkit::npapi::WebPlugin; |
31 using webkit::npapi::WebPluginResourceClient; | 31 using webkit::npapi::WebPluginResourceClient; |
32 | 32 |
33 namespace content { | 33 namespace content { |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 | 393 |
394 void WebPluginDelegateStub::OnHTTPRangeRequestReply( | 394 void WebPluginDelegateStub::OnHTTPRangeRequestReply( |
395 unsigned long resource_id, int range_request_id) { | 395 unsigned long resource_id, int range_request_id) { |
396 WebPluginResourceClient* resource_client = | 396 WebPluginResourceClient* resource_client = |
397 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); | 397 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); |
398 webplugin_->OnResourceCreated(resource_id, resource_client); | 398 webplugin_->OnResourceCreated(resource_id, resource_client); |
399 } | 399 } |
400 | 400 |
401 } // namespace content | 401 } // namespace content |
OLD | NEW |