| 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 "content/renderer/webplugin_delegate_proxy.h" | 5 #include "content/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 #elif defined(USE_X11) | 9 #elif defined(USE_X11) |
| 10 #include <cairo/cairo.h> | 10 #include <cairo/cairo.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "content/common/child_process.h" | 25 #include "content/common/child_process.h" |
| 26 #include "content/common/npobject_proxy.h" | 26 #include "content/common/npobject_proxy.h" |
| 27 #include "content/common/npobject_stub.h" | 27 #include "content/common/npobject_stub.h" |
| 28 #include "content/common/npobject_util.h" | 28 #include "content/common/npobject_util.h" |
| 29 #include "content/common/plugin_messages.h" | 29 #include "content/common/plugin_messages.h" |
| 30 #include "content/common/view_messages.h" | 30 #include "content/common/view_messages.h" |
| 31 #include "content/public/renderer/content_renderer_client.h" | 31 #include "content/public/renderer/content_renderer_client.h" |
| 32 #include "content/renderer/gpu/command_buffer_proxy.h" | 32 #include "content/renderer/gpu/command_buffer_proxy.h" |
| 33 #include "content/renderer/plugin_channel_host.h" | 33 #include "content/renderer/plugin_channel_host.h" |
| 34 #include "content/renderer/render_thread_impl.h" | 34 #include "content/renderer/render_thread_impl.h" |
| 35 #include "content/renderer/render_view.h" | 35 #include "content/renderer/render_view_impl.h" |
| 36 #include "ipc/ipc_channel_handle.h" | 36 #include "ipc/ipc_channel_handle.h" |
| 37 #include "net/base/mime_util.h" | 37 #include "net/base/mime_util.h" |
| 38 #include "skia/ext/platform_canvas.h" | 38 #include "skia/ext/platform_canvas.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 scoped_refptr<PluginChannelHost> channel_; | 158 scoped_refptr<PluginChannelHost> channel_; |
| 159 int instance_id_; | 159 int instance_id_; |
| 160 unsigned long resource_id_; | 160 unsigned long resource_id_; |
| 161 // Set to true if the response expected is a multibyte response. | 161 // Set to true if the response expected is a multibyte response. |
| 162 // For e.g. response for a HTTP byte range request. | 162 // For e.g. response for a HTTP byte range request. |
| 163 bool multibyte_response_expected_; | 163 bool multibyte_response_expected_; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 WebPluginDelegateProxy::WebPluginDelegateProxy( | 166 WebPluginDelegateProxy::WebPluginDelegateProxy( |
| 167 const std::string& mime_type, | 167 const std::string& mime_type, |
| 168 const base::WeakPtr<RenderView>& render_view) | 168 const base::WeakPtr<RenderViewImpl>& render_view) |
| 169 : render_view_(render_view), | 169 : render_view_(render_view), |
| 170 plugin_(NULL), | 170 plugin_(NULL), |
| 171 uses_shared_bitmaps_(false), | 171 uses_shared_bitmaps_(false), |
| 172 window_(gfx::kNullPluginWindow), | 172 window_(gfx::kNullPluginWindow), |
| 173 mime_type_(mime_type), | 173 mime_type_(mime_type), |
| 174 instance_id_(MSG_ROUTING_NONE), | 174 instance_id_(MSG_ROUTING_NONE), |
| 175 npobject_(NULL), | 175 npobject_(NULL), |
| 176 sad_plugin_(NULL), | 176 sad_plugin_(NULL), |
| 177 invalidate_pending_(false), | 177 invalidate_pending_(false), |
| 178 transparent_(false), | 178 transparent_(false), |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 } | 1438 } |
| 1439 #endif | 1439 #endif |
| 1440 | 1440 |
| 1441 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1441 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
| 1442 int resource_id) { | 1442 int resource_id) { |
| 1443 if (!plugin_) | 1443 if (!plugin_) |
| 1444 return; | 1444 return; |
| 1445 | 1445 |
| 1446 plugin_->URLRedirectResponse(allow, resource_id); | 1446 plugin_->URLRedirectResponse(allow, resource_id); |
| 1447 } | 1447 } |
| OLD | NEW |