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/webplugin_delegate_proxy.h" | 5 #include "content/renderer/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> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
15 #include "base/auto_reset.h" | 15 #include "base/auto_reset.h" |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/process.h" | 22 #include "base/process.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
24 #include "base/strings/string_split.h" | 24 #include "base/strings/string_split.h" |
25 #include "base/utf_string_conversions.h" | 25 #include "base/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/npobject_proxy.h" | 28 #include "content/child/npobject_proxy.h" |
28 #include "content/child/npobject_stub.h" | 29 #include "content/child/npobject_stub.h" |
29 #include "content/child/npobject_util.h" | 30 #include "content/child/npobject_util.h" |
30 #include "content/child/plugin_messages.h" | 31 #include "content/child/plugin_messages.h" |
31 #include "content/common/child_process.h" | |
32 #include "content/common/view_messages.h" | 32 #include "content/common/view_messages.h" |
33 #include "content/public/renderer/content_renderer_client.h" | 33 #include "content/public/renderer/content_renderer_client.h" |
34 #include "content/renderer/plugin_channel_host.h" | 34 #include "content/renderer/plugin_channel_host.h" |
35 #include "content/renderer/render_thread_impl.h" | 35 #include "content/renderer/render_thread_impl.h" |
36 #include "content/renderer/render_view_impl.h" | 36 #include "content/renderer/render_view_impl.h" |
37 #include "ipc/ipc_channel_handle.h" | 37 #include "ipc/ipc_channel_handle.h" |
38 #include "net/base/mime_util.h" | 38 #include "net/base/mime_util.h" |
39 #include "skia/ext/platform_canvas.h" | 39 #include "skia/ext/platform_canvas.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 | 1206 |
1207 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1207 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
1208 int resource_id) { | 1208 int resource_id) { |
1209 if (!plugin_) | 1209 if (!plugin_) |
1210 return; | 1210 return; |
1211 | 1211 |
1212 plugin_->URLRedirectResponse(allow, resource_id); | 1212 plugin_->URLRedirectResponse(allow, resource_id); |
1213 } | 1213 } |
1214 | 1214 |
1215 } // namespace content | 1215 } // namespace content |
OLD | NEW |