| 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/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 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
| 18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
| 19 #include "base/string_split.h" | 19 #include "base/string_split.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
| 22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 23 #include "chrome/common/child_process_logging.h" | 23 #include "chrome/common/child_process_logging.h" |
| 24 #include "chrome/common/plugin_messages.h" | |
| 25 #include "chrome/common/render_messages.h" | 24 #include "chrome/common/render_messages.h" |
| 26 #include "chrome/plugin/npobject_proxy.h" | 25 #include "chrome/plugin/npobject_proxy.h" |
| 27 #include "chrome/plugin/npobject_stub.h" | 26 #include "chrome/plugin/npobject_stub.h" |
| 28 #include "chrome/plugin/npobject_util.h" | 27 #include "chrome/plugin/npobject_util.h" |
| 29 #include "chrome/renderer/command_buffer_proxy.h" | 28 #include "chrome/renderer/command_buffer_proxy.h" |
| 30 #include "chrome/renderer/plugin_channel_host.h" | 29 #include "chrome/renderer/plugin_channel_host.h" |
| 31 #include "chrome/renderer/render_thread.h" | 30 #include "chrome/renderer/render_thread.h" |
| 32 #include "chrome/renderer/render_view.h" | 31 #include "chrome/renderer/render_view.h" |
| 32 #include "content/common/plugin_messages.h" |
| 33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
| 34 #include "grit/renderer_resources.h" | 34 #include "grit/renderer_resources.h" |
| 35 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
| 36 #include "net/base/mime_util.h" | 36 #include "net/base/mime_util.h" |
| 37 #include "skia/ext/platform_canvas.h" | 37 #include "skia/ext/platform_canvas.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 } | 1420 } |
| 1421 #endif | 1421 #endif |
| 1422 | 1422 |
| 1423 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1423 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
| 1424 int resource_id) { | 1424 int resource_id) { |
| 1425 if (!plugin_) | 1425 if (!plugin_) |
| 1426 return; | 1426 return; |
| 1427 | 1427 |
| 1428 plugin_->URLRedirectResponse(allow, resource_id); | 1428 plugin_->URLRedirectResponse(allow, resource_id); |
| 1429 } | 1429 } |
| OLD | NEW |