| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <atlbase.h> | 10 #include <atlbase.h> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/plugin/npobject_util.h" | 28 #include "chrome/plugin/npobject_util.h" |
| 29 #include "chrome/renderer/render_thread.h" | 29 #include "chrome/renderer/render_thread.h" |
| 30 #include "chrome/renderer/render_view.h" | 30 #include "chrome/renderer/render_view.h" |
| 31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 32 #include "grit/renderer_resources.h" | 32 #include "grit/renderer_resources.h" |
| 33 #include "net/base/mime_util.h" | 33 #include "net/base/mime_util.h" |
| 34 #include "printing/native_metafile.h" | 34 #include "printing/native_metafile.h" |
| 35 #include "webkit/api/public/WebBindings.h" | 35 #include "webkit/api/public/WebBindings.h" |
| 36 #include "webkit/api/public/WebCursorInfo.h" | 36 #include "webkit/api/public/WebCursorInfo.h" |
| 37 #include "webkit/api/public/WebDragData.h" | 37 #include "webkit/api/public/WebDragData.h" |
| 38 #include "webkit/api/public/WebFrame.h" |
| 38 #include "webkit/api/public/WebString.h" | 39 #include "webkit/api/public/WebString.h" |
| 39 #include "webkit/api/public/WebVector.h" | 40 #include "webkit/api/public/WebVector.h" |
| 40 #include "webkit/glue/webframe.h" | |
| 41 #include "webkit/glue/webkit_glue.h" | 41 #include "webkit/glue/webkit_glue.h" |
| 42 #include "webkit/glue/webplugin.h" | 42 #include "webkit/glue/webplugin.h" |
| 43 #include "webkit/glue/webview.h" | 43 #include "webkit/glue/webview.h" |
| 44 | 44 |
| 45 #if defined(OS_POSIX) | 45 #if defined(OS_POSIX) |
| 46 #include "ipc/ipc_channel_posix.h" | 46 #include "ipc/ipc_channel_posix.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 50 #include "base/scoped_cftyperef.h" | 50 #include "base/scoped_cftyperef.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 plugin_(NULL), | 173 plugin_(NULL), |
| 174 windowless_(false), | 174 windowless_(false), |
| 175 window_(NULL), | 175 window_(NULL), |
| 176 mime_type_(mime_type), | 176 mime_type_(mime_type), |
| 177 clsid_(clsid), | 177 clsid_(clsid), |
| 178 npobject_(NULL), | 178 npobject_(NULL), |
| 179 window_script_object_(NULL), | 179 window_script_object_(NULL), |
| 180 sad_plugin_(NULL), | 180 sad_plugin_(NULL), |
| 181 invalidate_pending_(false), | 181 invalidate_pending_(false), |
| 182 transparent_(false), | 182 transparent_(false), |
| 183 page_url_(render_view_->webview()->GetMainFrame()->GetURL()) { | 183 page_url_(render_view_->webview()->GetMainFrame()->url()) { |
| 184 } | 184 } |
| 185 | 185 |
| 186 WebPluginDelegateProxy::~WebPluginDelegateProxy() { | 186 WebPluginDelegateProxy::~WebPluginDelegateProxy() { |
| 187 } | 187 } |
| 188 | 188 |
| 189 void WebPluginDelegateProxy::PluginDestroyed() { | 189 void WebPluginDelegateProxy::PluginDestroyed() { |
| 190 plugin_ = NULL; | 190 plugin_ = NULL; |
| 191 | 191 |
| 192 if (npobject_) { | 192 if (npobject_) { |
| 193 // When we destroy the plugin instance, the NPObjectStub NULLs out its | 193 // When we destroy the plugin instance, the NPObjectStub NULLs out its |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 991 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
| 992 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 992 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
| 993 existing_stream, notify_needed, | 993 existing_stream, notify_needed, |
| 994 notify_data); | 994 notify_data); |
| 995 } | 995 } |
| 996 | 996 |
| 997 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, | 997 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, |
| 998 bool defer) { | 998 bool defer) { |
| 999 plugin_->SetDeferResourceLoading(resource_id, defer); | 999 plugin_->SetDeferResourceLoading(resource_id, defer); |
| 1000 } | 1000 } |
| OLD | NEW |