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/npapi/webplugin_delegate_proxy.h" | 5 #include "content/renderer/npapi/webplugin_delegate_proxy.h" |
6 | 6 |
7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #elif defined(USE_X11) | 9 #elif defined(USE_X11) |
10 #include <cairo/cairo.h> | 10 #include <cairo/cairo.h> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/strings/string_split.h" | 23 #include "base/strings/string_split.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "base/version.h" | 26 #include "base/version.h" |
27 #include "content/child/child_process.h" | 27 #include "content/child/child_process.h" |
28 #include "content/child/npapi/npobject_proxy.h" | 28 #include "content/child/npapi/npobject_proxy.h" |
29 #include "content/child/npapi/npobject_stub.h" | 29 #include "content/child/npapi/npobject_stub.h" |
30 #include "content/child/npapi/npobject_util.h" | 30 #include "content/child/npapi/npobject_util.h" |
31 #include "content/child/npapi/webplugin.h" | 31 #include "content/child/npapi/webplugin.h" |
32 #include "content/child/plugin_messages.h" | 32 #include "content/child/plugin_messages.h" |
| 33 #include "content/common/content_constants_internal.h" |
33 #include "content/common/view_messages.h" | 34 #include "content/common/view_messages.h" |
34 #include "content/public/renderer/content_renderer_client.h" | 35 #include "content/public/renderer/content_renderer_client.h" |
35 #include "content/renderer/npapi/plugin_channel_host.h" | 36 #include "content/renderer/npapi/plugin_channel_host.h" |
36 #include "content/renderer/render_thread_impl.h" | 37 #include "content/renderer/render_thread_impl.h" |
37 #include "content/renderer/render_view_impl.h" | 38 #include "content/renderer/render_view_impl.h" |
38 #include "content/renderer/sad_plugin.h" | 39 #include "content/renderer/sad_plugin.h" |
39 #include "ipc/ipc_channel_handle.h" | 40 #include "ipc/ipc_channel_handle.h" |
40 #include "net/base/mime_util.h" | 41 #include "net/base/mime_util.h" |
41 #include "skia/ext/platform_canvas.h" | 42 #include "skia/ext/platform_canvas.h" |
42 #include "third_party/WebKit/public/web/WebBindings.h" | 43 #include "third_party/WebKit/public/web/WebBindings.h" |
43 #include "third_party/WebKit/public/web/WebDocument.h" | 44 #include "third_party/WebKit/public/web/WebDocument.h" |
44 #include "third_party/WebKit/public/web/WebFrame.h" | 45 #include "third_party/WebKit/public/web/WebFrame.h" |
45 #include "third_party/WebKit/public/web/WebView.h" | 46 #include "third_party/WebKit/public/web/WebView.h" |
46 #include "third_party/WebKit/public/platform/WebDragData.h" | 47 #include "third_party/WebKit/public/platform/WebDragData.h" |
47 #include "third_party/WebKit/public/platform/WebString.h" | 48 #include "third_party/WebKit/public/platform/WebString.h" |
48 #include "ui/gfx/blit.h" | 49 #include "ui/gfx/blit.h" |
49 #include "ui/gfx/canvas.h" | 50 #include "ui/gfx/canvas.h" |
50 #include "ui/gfx/native_widget_types.h" | 51 #include "ui/gfx/native_widget_types.h" |
51 #include "ui/gfx/size.h" | 52 #include "ui/gfx/size.h" |
52 #include "ui/gfx/skia_util.h" | 53 #include "ui/gfx/skia_util.h" |
53 #include "webkit/common/cursors/webcursor.h" | 54 #include "webkit/common/cursors/webcursor.h" |
54 #include "webkit/glue/webkit_glue.h" | 55 #include "webkit/glue/webkit_glue.h" |
55 #include "webkit/plugins/plugin_constants.h" | |
56 | 56 |
57 #if defined(OS_POSIX) | 57 #if defined(OS_POSIX) |
58 #include "ipc/ipc_channel_posix.h" | 58 #include "ipc/ipc_channel_posix.h" |
59 #endif | 59 #endif |
60 | 60 |
61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
62 #include "base/mac/mac_util.h" | 62 #include "base/mac/mac_util.h" |
63 #endif | 63 #endif |
64 | 64 |
65 #if defined(OS_WIN) | 65 #if defined(OS_WIN) |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1197 |
1198 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1198 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
1199 int resource_id) { | 1199 int resource_id) { |
1200 if (!plugin_) | 1200 if (!plugin_) |
1201 return; | 1201 return; |
1202 | 1202 |
1203 plugin_->URLRedirectResponse(allow, resource_id); | 1203 plugin_->URLRedirectResponse(allow, resource_id); |
1204 } | 1204 } |
1205 | 1205 |
1206 } // namespace content | 1206 } // namespace content |
OLD | NEW |