| 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/gfx/canvas.h" | 9 #include "app/gfx/canvas.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 WebPluginDelegateProxy::WebPluginDelegateProxy( | 158 WebPluginDelegateProxy::WebPluginDelegateProxy( |
| 159 const std::string& mime_type, | 159 const std::string& mime_type, |
| 160 const base::WeakPtr<RenderView>& render_view) | 160 const base::WeakPtr<RenderView>& render_view) |
| 161 : render_view_(render_view), | 161 : render_view_(render_view), |
| 162 plugin_(NULL), | 162 plugin_(NULL), |
| 163 windowless_(false), | 163 windowless_(false), |
| 164 window_(NULL), | 164 window_(NULL), |
| 165 mime_type_(mime_type), | 165 mime_type_(mime_type), |
| 166 instance_id_(MSG_ROUTING_NONE), |
| 166 npobject_(NULL), | 167 npobject_(NULL), |
| 167 window_script_object_(NULL), | 168 window_script_object_(NULL), |
| 168 sad_plugin_(NULL), | 169 sad_plugin_(NULL), |
| 169 invalidate_pending_(false), | 170 invalidate_pending_(false), |
| 170 transparent_(false), | 171 transparent_(false), |
| 171 page_url_(render_view_->webview()->GetMainFrame()->url()) { | 172 page_url_(render_view_->webview()->GetMainFrame()->url()) { |
| 172 } | 173 } |
| 173 | 174 |
| 174 WebPluginDelegateProxy::~WebPluginDelegateProxy() { | 175 WebPluginDelegateProxy::~WebPluginDelegateProxy() { |
| 175 } | 176 } |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 1065 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
| 1065 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 1066 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
| 1066 existing_stream, notify_needed, | 1067 existing_stream, notify_needed, |
| 1067 notify_data); | 1068 notify_data); |
| 1068 } | 1069 } |
| 1069 | 1070 |
| 1070 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, | 1071 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, |
| 1071 bool defer) { | 1072 bool defer) { |
| 1072 plugin_->SetDeferResourceLoading(resource_id, defer); | 1073 plugin_->SetDeferResourceLoading(resource_id, defer); |
| 1073 } | 1074 } |
| OLD | NEW |