| 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/plugin/webplugin_delegate_stub.h" | 5 #include "chrome/plugin/webplugin_delegate_stub.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/gfx/emf.h" | 10 #include "chrome/common/gfx/emf.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const PluginMsg_DidReceiveResponseParams& params, bool* cancel) { | 150 const PluginMsg_DidReceiveResponseParams& params, bool* cancel) { |
| 151 *cancel = false; | 151 *cancel = false; |
| 152 WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id); | 152 WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id); |
| 153 if (!client) | 153 if (!client) |
| 154 return; | 154 return; |
| 155 | 155 |
| 156 client->DidReceiveResponse(params.mime_type, | 156 client->DidReceiveResponse(params.mime_type, |
| 157 params.headers, | 157 params.headers, |
| 158 params.expected_length, | 158 params.expected_length, |
| 159 params.last_modified, | 159 params.last_modified, |
| 160 params.request_is_seekable, |
| 160 cancel); | 161 cancel); |
| 161 } | 162 } |
| 162 | 163 |
| 163 void WebPluginDelegateStub::OnDidReceiveData(int id, | 164 void WebPluginDelegateStub::OnDidReceiveData(int id, |
| 164 const std::vector<char>& buffer, | 165 const std::vector<char>& buffer, |
| 165 int data_offset) { | 166 int data_offset) { |
| 166 WebPluginResourceClient* client = webplugin_->GetResourceClient(id); | 167 WebPluginResourceClient* client = webplugin_->GetResourceClient(id); |
| 167 if (!client) | 168 if (!client) |
| 168 return; | 169 return; |
| 169 | 170 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 params.stream); | 335 params.stream); |
| 335 webplugin_->OnResourceCreated(params.resource_id, resource_client); | 336 webplugin_->OnResourceCreated(params.resource_id, resource_client); |
| 336 } | 337 } |
| 337 | 338 |
| 338 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, | 339 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, |
| 339 bool notify_needed, | 340 bool notify_needed, |
| 340 HANDLE notify_data) { | 341 HANDLE notify_data) { |
| 341 delegate_->URLRequestRouted(url, notify_needed, notify_data); | 342 delegate_->URLRequestRouted(url, notify_needed, notify_data); |
| 342 } | 343 } |
| 343 | 344 |
| OLD | NEW |