Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 14122: Handle HTTP 200 responses received in response to byte range requests issued... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/plugin_messages.h ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/common/plugin_messages.h ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698