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/renderer/pepper/pepper_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_offset_string_conversions.h" | 15 #include "base/strings/utf_offset_string_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "cc/layers/texture_layer.h" | 18 #include "cc/layers/texture_layer.h" |
| 19 #include "content/common/content_constants_internal.h" |
19 #include "content/public/common/page_zoom.h" | 20 #include "content/public/common/page_zoom.h" |
20 #include "content/public/renderer/content_renderer_client.h" | 21 #include "content/public/renderer/content_renderer_client.h" |
21 #include "content/renderer/pepper/common.h" | 22 #include "content/renderer/pepper/common.h" |
22 #include "content/renderer/pepper/content_decryptor_delegate.h" | 23 #include "content/renderer/pepper/content_decryptor_delegate.h" |
23 #include "content/renderer/pepper/event_conversion.h" | 24 #include "content/renderer/pepper/event_conversion.h" |
24 #include "content/renderer/pepper/fullscreen_container.h" | 25 #include "content/renderer/pepper/fullscreen_container.h" |
25 #include "content/renderer/pepper/gfx_conversion.h" | 26 #include "content/renderer/pepper/gfx_conversion.h" |
26 #include "content/renderer/pepper/host_dispatcher_wrapper.h" | 27 #include "content/renderer/pepper/host_dispatcher_wrapper.h" |
27 #include "content/renderer/pepper/host_globals.h" | 28 #include "content/renderer/pepper/host_globals.h" |
28 #include "content/renderer/pepper/message_channel.h" | 29 #include "content/renderer/pepper/message_channel.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 105 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
105 #include "third_party/WebKit/public/web/WebView.h" | 106 #include "third_party/WebKit/public/web/WebView.h" |
106 #include "third_party/skia/include/core/SkCanvas.h" | 107 #include "third_party/skia/include/core/SkCanvas.h" |
107 #include "third_party/skia/include/core/SkRect.h" | 108 #include "third_party/skia/include/core/SkRect.h" |
108 #include "ui/base/range/range.h" | 109 #include "ui/base/range/range.h" |
109 #include "ui/gfx/image/image_skia.h" | 110 #include "ui/gfx/image/image_skia.h" |
110 #include "ui/gfx/image/image_skia_rep.h" | 111 #include "ui/gfx/image/image_skia_rep.h" |
111 #include "ui/gfx/rect_conversions.h" | 112 #include "ui/gfx/rect_conversions.h" |
112 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 113 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
113 #include "v8/include/v8.h" | 114 #include "v8/include/v8.h" |
114 #include "webkit/plugins/plugin_constants.h" | |
115 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 115 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
116 | 116 |
117 #if defined(OS_MACOSX) | 117 #if defined(OS_MACOSX) |
118 #include "printing/metafile_impl.h" | 118 #include "printing/metafile_impl.h" |
119 #endif // defined(OS_MACOSX) | 119 #endif // defined(OS_MACOSX) |
120 | 120 |
121 #if defined(OS_WIN) | 121 #if defined(OS_WIN) |
122 #include "base/metrics/histogram.h" | 122 #include "base/metrics/histogram.h" |
123 #include "base/win/windows_version.h" | 123 #include "base/win/windows_version.h" |
124 #include "skia/ext/platform_canvas.h" | 124 #include "skia/ext/platform_canvas.h" |
(...skipping 2778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2903 // Running out-of-process. Initiate an IPC call to notify the plugin | 2903 // Running out-of-process. Initiate an IPC call to notify the plugin |
2904 // process. | 2904 // process. |
2905 ppapi::proxy::HostDispatcher* dispatcher = | 2905 ppapi::proxy::HostDispatcher* dispatcher = |
2906 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 2906 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
2907 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 2907 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
2908 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 2908 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
2909 } | 2909 } |
2910 } | 2910 } |
2911 | 2911 |
2912 } // namespace content | 2912 } // namespace content |
OLD | NEW |