OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_proxy.h" | 5 #include "chrome/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/common/child_process_logging.h" | 13 #include "chrome/common/child_process_logging.h" |
14 #include "chrome/common/plugin_messages.h" | 14 #include "chrome/common/plugin_messages.h" |
15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
16 #include "chrome/plugin/npobject_proxy.h" | 16 #include "chrome/plugin/npobject_proxy.h" |
17 #include "chrome/plugin/npobject_util.h" | 17 #include "chrome/plugin/npobject_util.h" |
18 #include "chrome/plugin/plugin_channel.h" | 18 #include "chrome/plugin/plugin_channel.h" |
19 #include "chrome/plugin/plugin_thread.h" | 19 #include "chrome/plugin/plugin_thread.h" |
20 #include "gfx/blit.h" | |
21 #include "gfx/canvas.h" | |
22 #include "skia/ext/platform_device.h" | 20 #include "skia/ext/platform_device.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 22 #include "ui/gfx/blit.h" |
| 23 #include "ui/gfx/canvas.h" |
24 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 24 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
25 | 25 |
26 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
27 #include "base/mac/mac_util.h" | 27 #include "base/mac/mac_util.h" |
28 #include "base/mac/scoped_cftyperef.h" | 28 #include "base/mac/scoped_cftyperef.h" |
29 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" | 29 #include "chrome/plugin/webplugin_accelerated_surface_proxy_mac.h" |
30 #endif | 30 #endif |
31 | 31 |
32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
33 #include "chrome/common/section_util_win.h" | 33 #include "chrome/common/section_util_win.h" |
34 #include "gfx/gdi_util.h" | 34 #include "ui/gfx/gdi_util.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #if defined(USE_X11) | 37 #if defined(USE_X11) |
38 #include "ui/base/x/x11_util_internal.h" | 38 #include "ui/base/x/x11_util_internal.h" |
39 #endif | 39 #endif |
40 | 40 |
41 using WebKit::WebBindings; | 41 using WebKit::WebBindings; |
42 | 42 |
43 using webkit::npapi::WebPluginResourceClient; | 43 using webkit::npapi::WebPluginResourceClient; |
44 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } else { | 731 } else { |
732 index++; | 732 index++; |
733 } | 733 } |
734 } | 734 } |
735 } | 735 } |
736 | 736 |
737 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 737 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
738 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 738 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
739 } | 739 } |
740 | 740 |
OLD | NEW |