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

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

Issue 160338: Another attempt at landing this patch. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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/plugin/webplugin_delegate_stub.h ('k') | chrome/plugin/webplugin_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 "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/common/child_process_logging.h" 10 #include "chrome/common/child_process_logging.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 void WebPluginDelegateStub::OnWillSendRequest(int id, const GURL& url) { 169 void WebPluginDelegateStub::OnWillSendRequest(int id, const GURL& url) {
170 WebPluginResourceClient* client = webplugin_->GetResourceClient(id); 170 WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
171 if (!client) 171 if (!client)
172 return; 172 return;
173 173
174 client->WillSendRequest(url); 174 client->WillSendRequest(url);
175 } 175 }
176 176
177 void WebPluginDelegateStub::OnDidReceiveResponse( 177 void WebPluginDelegateStub::OnDidReceiveResponse(
178 const PluginMsg_DidReceiveResponseParams& params, bool* cancel) { 178 const PluginMsg_DidReceiveResponseParams& params) {
179 *cancel = false;
180 WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id); 179 WebPluginResourceClient* client = webplugin_->GetResourceClient(params.id);
181 if (!client) 180 if (!client)
182 return; 181 return;
183 182
184 client->DidReceiveResponse(params.mime_type, 183 client->DidReceiveResponse(params.mime_type,
185 params.headers, 184 params.headers,
186 params.expected_length, 185 params.expected_length,
187 params.last_modified, 186 params.last_modified,
188 params.request_is_seekable, 187 params.request_is_seekable);
189 cancel);
190 } 188 }
191 189
192 void WebPluginDelegateStub::OnDidReceiveData(int id, 190 void WebPluginDelegateStub::OnDidReceiveData(int id,
193 const std::vector<char>& buffer, 191 const std::vector<char>& buffer,
194 int data_offset) { 192 int data_offset) {
195 WebPluginResourceClient* client = webplugin_->GetResourceClient(id); 193 WebPluginResourceClient* client = webplugin_->GetResourceClient(id);
196 if (!client) 194 if (!client)
197 return; 195 return;
198 196
199 client->DidReceiveData(&buffer.front(), static_cast<int>(buffer.size()), 197 client->DidReceiveData(&buffer.front(), static_cast<int>(buffer.size()),
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 params.notify_data, 373 params.notify_data,
376 params.stream); 374 params.stream);
377 webplugin_->OnResourceCreated(params.resource_id, resource_client); 375 webplugin_->OnResourceCreated(params.resource_id, resource_client);
378 } 376 }
379 377
380 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, 378 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url,
381 bool notify_needed, 379 bool notify_needed,
382 intptr_t notify_data) { 380 intptr_t notify_data) {
383 delegate_->URLRequestRouted(url, notify_needed, notify_data); 381 delegate_->URLRequestRouted(url, notify_needed, notify_data);
384 } 382 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.h ('k') | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698