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

Side by Side Diff: webkit/plugins/ppapi/ppb_url_request_info_impl.cc

Issue 7747010: Fix crash in PPB_URLRequestInfo::ToWebURLRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « no previous file | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_url_request_info_impl.h" 5 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "googleurl/src/url_util.h" 10 #include "googleurl/src/url_util.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 WebString::fromUTF8(it.values())); 284 WebString::fromUTF8(it.values()));
285 } 285 }
286 } 286 }
287 287
288 if (!body_.empty()) { 288 if (!body_.empty()) {
289 WebHTTPBody http_body; 289 WebHTTPBody http_body;
290 http_body.initialize(); 290 http_body.initialize();
291 for (size_t i = 0; i < body_.size(); ++i) { 291 for (size_t i = 0; i < body_.size(); ++i) {
292 if (body_[i].file_ref) { 292 if (body_[i].file_ref) {
293 FilePath platform_path; 293 FilePath platform_path;
294 switch (body_[i].file_ref->file_system()->type()) { 294 switch (body_[i].file_ref->GetFileSystemType()) {
295 case PP_FILESYSTEMTYPE_LOCALTEMPORARY: 295 case PP_FILESYSTEMTYPE_LOCALTEMPORARY:
296 case PP_FILESYSTEMTYPE_LOCALPERSISTENT: { 296 case PP_FILESYSTEMTYPE_LOCALPERSISTENT: {
297 // TODO(kinuko): remove this sync IPC when we add more generic 297 // TODO(kinuko): remove this sync IPC when we add more generic
298 // AppendURLRange solution that works for both Blob/FileSystem URL. 298 // AppendURLRange solution that works for both Blob/FileSystem URL.
299 PluginDelegate* plugin_delegate = 299 PluginDelegate* plugin_delegate =
300 ResourceHelper::GetPluginDelegate(this); 300 ResourceHelper::GetPluginDelegate(this);
301 if (plugin_delegate) { 301 if (plugin_delegate) {
302 plugin_delegate->SyncGetFileSystemPlatformPath( 302 plugin_delegate->SyncGetFileSystemPlatformPath(
303 body_[i].file_ref->GetFileSystemURL(), &platform_path); 303 body_[i].file_ref->GetFileSystemURL(), &platform_path);
304 } 304 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 has_custom_content_transfer_encoding_ = true; 431 has_custom_content_transfer_encoding_ = true;
432 custom_content_transfer_encoding_ = value; 432 custom_content_transfer_encoding_ = value;
433 return true; 433 return true;
434 default: 434 default:
435 return false; 435 return false;
436 } 436 }
437 } 437 }
438 438
439 } // namespace ppapi 439 } // namespace ppapi
440 } // namespace webkit 440 } // namespace webkit
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698