| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/common/child_process_logging.h" | 22 #include "chrome/common/child_process_logging.h" |
| 23 #include "chrome/common/plugin_messages.h" | 23 #include "chrome/common/plugin_messages.h" |
| 24 #include "chrome/common/render_messages.h" | 24 #include "chrome/common/render_messages.h" |
| 25 #include "chrome/plugin/npobject_proxy.h" | 25 #include "chrome/plugin/npobject_proxy.h" |
| 26 #include "chrome/plugin/npobject_stub.h" | 26 #include "chrome/plugin/npobject_stub.h" |
| 27 #include "chrome/plugin/npobject_util.h" | 27 #include "chrome/plugin/npobject_util.h" |
| 28 #include "chrome/renderer/command_buffer_proxy.h" | 28 #include "chrome/renderer/command_buffer_proxy.h" |
| 29 #include "chrome/renderer/plugin_channel_host.h" | 29 #include "chrome/renderer/plugin_channel_host.h" |
| 30 #include "chrome/renderer/render_thread.h" | 30 #include "chrome/renderer/render_thread.h" |
| 31 #include "chrome/renderer/render_view.h" | 31 #include "chrome/renderer/render_view.h" |
| 32 #include "gfx/blit.h" | |
| 33 #include "gfx/canvas_skia.h" | |
| 34 #include "gfx/native_widget_types.h" | |
| 35 #include "gfx/size.h" | |
| 36 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
| 37 #include "grit/renderer_resources.h" | 33 #include "grit/renderer_resources.h" |
| 38 #include "ipc/ipc_channel_handle.h" | 34 #include "ipc/ipc_channel_handle.h" |
| 39 #include "net/base/mime_util.h" | 35 #include "net/base/mime_util.h" |
| 40 #include "printing/native_metafile.h" | 36 #include "printing/native_metafile.h" |
| 41 #include "skia/ext/platform_canvas.h" | 37 #include "skia/ext/platform_canvas.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 49 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
| 46 #include "ui/gfx/blit.h" |
| 47 #include "ui/gfx/canvas_skia.h" |
| 48 #include "ui/gfx/native_widget_types.h" |
| 49 #include "ui/gfx/size.h" |
| 50 #include "webkit/plugins/npapi/webplugin.h" | 50 #include "webkit/plugins/npapi/webplugin.h" |
| 51 #include "webkit/glue/webkit_glue.h" | 51 #include "webkit/glue/webkit_glue.h" |
| 52 | 52 |
| 53 #if defined(OS_POSIX) | 53 #if defined(OS_POSIX) |
| 54 #include "ipc/ipc_channel_posix.h" | 54 #include "ipc/ipc_channel_posix.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 using WebKit::WebBindings; | 57 using WebKit::WebBindings; |
| 58 using WebKit::WebCursorInfo; | 58 using WebKit::WebCursorInfo; |
| 59 using WebKit::WebDragData; | 59 using WebKit::WebDragData; |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 } | 1579 } |
| 1580 #endif | 1580 #endif |
| 1581 | 1581 |
| 1582 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1582 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
| 1583 int resource_id) { | 1583 int resource_id) { |
| 1584 if (!plugin_) | 1584 if (!plugin_) |
| 1585 return; | 1585 return; |
| 1586 | 1586 |
| 1587 plugin_->URLRedirectResponse(allow, resource_id); | 1587 plugin_->URLRedirectResponse(allow, resource_id); |
| 1588 } | 1588 } |
| OLD | NEW |