OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #if defined(OS_LINUX) | 9 #if defined(OS_LINUX) |
10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 #if defined(ENABLE_GPU) | 1146 #if defined(ENABLE_GPU) |
1147 int command_buffer_id; | 1147 int command_buffer_id; |
1148 if (!Send(new PluginMsg_CreateCommandBuffer(instance_id_, | 1148 if (!Send(new PluginMsg_CreateCommandBuffer(instance_id_, |
1149 &command_buffer_id))) { | 1149 &command_buffer_id))) { |
1150 return NULL; | 1150 return NULL; |
1151 } | 1151 } |
1152 | 1152 |
1153 return new CommandBufferProxy(channel_host_, command_buffer_id); | 1153 return new CommandBufferProxy(channel_host_, command_buffer_id); |
1154 #else | 1154 #else |
1155 return NULL; | 1155 return NULL; |
1156 #endif | 1156 #endif // ENABLE_GPU |
1157 } | 1157 } |
1158 | 1158 |
1159 void WebPluginDelegateProxy::OnCancelDocumentLoad() { | 1159 void WebPluginDelegateProxy::OnCancelDocumentLoad() { |
1160 plugin_->CancelDocumentLoad(); | 1160 plugin_->CancelDocumentLoad(); |
1161 } | 1161 } |
1162 | 1162 |
1163 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( | 1163 void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest( |
1164 const std::string& url, const std::string& range_info, | 1164 const std::string& url, const std::string& range_info, |
1165 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 1165 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
1166 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 1166 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
(...skipping 19 matching lines...) Expand all Loading... |
1186 // prior to the UpdateGeometry message now being acknowledged are known to | 1186 // prior to the UpdateGeometry message now being acknowledged are known to |
1187 // be no longer needed. Release them, and take the stale entry out of the | 1187 // be no longer needed. Release them, and take the stale entry out of the |
1188 // map. | 1188 // map. |
1189 ReleaseTransportDIB(iterator->second.backing_store.get()); | 1189 ReleaseTransportDIB(iterator->second.backing_store.get()); |
1190 ReleaseTransportDIB(iterator->second.transport_store.get()); | 1190 ReleaseTransportDIB(iterator->second.transport_store.get()); |
1191 ReleaseTransportDIB(iterator->second.background_store.get()); | 1191 ReleaseTransportDIB(iterator->second.background_store.get()); |
1192 | 1192 |
1193 old_transport_dibs_.erase(iterator); | 1193 old_transport_dibs_.erase(iterator); |
1194 } | 1194 } |
1195 #endif | 1195 #endif |
OLD | NEW |