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 13 matching lines...) Expand all Loading... |
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_resource_client.h" | 31 #include "content/child/npapi/webplugin_resource_client.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/content_constants_internal.h" |
| 34 #include "content/common/cursors/webcursor.h" |
34 #include "content/common/frame_messages.h" | 35 #include "content/common/frame_messages.h" |
35 #include "content/common/view_messages.h" | 36 #include "content/common/view_messages.h" |
36 #include "content/public/renderer/content_renderer_client.h" | 37 #include "content/public/renderer/content_renderer_client.h" |
37 #include "content/renderer/npapi/plugin_channel_host.h" | 38 #include "content/renderer/npapi/plugin_channel_host.h" |
38 #include "content/renderer/npapi/webplugin_impl.h" | 39 #include "content/renderer/npapi/webplugin_impl.h" |
39 #include "content/renderer/render_thread_impl.h" | 40 #include "content/renderer/render_thread_impl.h" |
40 #include "content/renderer/render_view_impl.h" | 41 #include "content/renderer/render_view_impl.h" |
41 #include "content/renderer/sad_plugin.h" | 42 #include "content/renderer/sad_plugin.h" |
42 #include "ipc/ipc_channel_handle.h" | 43 #include "ipc/ipc_channel_handle.h" |
43 #include "net/base/mime_util.h" | 44 #include "net/base/mime_util.h" |
44 #include "skia/ext/platform_canvas.h" | 45 #include "skia/ext/platform_canvas.h" |
| 46 #include "third_party/WebKit/public/platform/WebDragData.h" |
| 47 #include "third_party/WebKit/public/platform/WebString.h" |
45 #include "third_party/WebKit/public/web/WebBindings.h" | 48 #include "third_party/WebKit/public/web/WebBindings.h" |
46 #include "third_party/WebKit/public/web/WebDocument.h" | 49 #include "third_party/WebKit/public/web/WebDocument.h" |
47 #include "third_party/WebKit/public/web/WebFrame.h" | 50 #include "third_party/WebKit/public/web/WebFrame.h" |
48 #include "third_party/WebKit/public/web/WebView.h" | 51 #include "third_party/WebKit/public/web/WebView.h" |
49 #include "third_party/WebKit/public/platform/WebDragData.h" | |
50 #include "third_party/WebKit/public/platform/WebString.h" | |
51 #include "ui/gfx/blit.h" | 52 #include "ui/gfx/blit.h" |
52 #include "ui/gfx/canvas.h" | 53 #include "ui/gfx/canvas.h" |
53 #include "ui/gfx/native_widget_types.h" | 54 #include "ui/gfx/native_widget_types.h" |
54 #include "ui/gfx/size.h" | 55 #include "ui/gfx/size.h" |
55 #include "ui/gfx/skia_util.h" | 56 #include "ui/gfx/skia_util.h" |
56 #include "webkit/common/cursors/webcursor.h" | |
57 | 57 |
58 #if defined(OS_POSIX) | 58 #if defined(OS_POSIX) |
59 #include "ipc/ipc_channel_posix.h" | 59 #include "ipc/ipc_channel_posix.h" |
60 #endif | 60 #endif |
61 | 61 |
62 #if defined(OS_MACOSX) | 62 #if defined(OS_MACOSX) |
63 #include "base/mac/mac_util.h" | 63 #include "base/mac/mac_util.h" |
64 #endif | 64 #endif |
65 | 65 |
66 #if defined(OS_WIN) | 66 #if defined(OS_WIN) |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 | 1240 |
1241 plugin_->URLRedirectResponse(allow, resource_id); | 1241 plugin_->URLRedirectResponse(allow, resource_id); |
1242 } | 1242 } |
1243 | 1243 |
1244 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, | 1244 void WebPluginDelegateProxy::OnCheckIfRunInsecureContent(const GURL& url, |
1245 bool* result) { | 1245 bool* result) { |
1246 *result = plugin_->CheckIfRunInsecureContent(url); | 1246 *result = plugin_->CheckIfRunInsecureContent(url); |
1247 } | 1247 } |
1248 | 1248 |
1249 } // namespace content | 1249 } // namespace content |
OLD | NEW |