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

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

Issue 7491046: Close the URL request in the destroctor. This ensures the load is actually (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « 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_loader_impl.h" 5 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 user_buffer_(NULL), 63 user_buffer_(NULL),
64 user_buffer_size_(0), 64 user_buffer_size_(0),
65 done_status_(PP_OK_COMPLETIONPENDING), 65 done_status_(PP_OK_COMPLETIONPENDING),
66 is_streaming_to_file_(false), 66 is_streaming_to_file_(false),
67 is_asynchronous_load_suspended_(false), 67 is_asynchronous_load_suspended_(false),
68 has_universal_access_(false), 68 has_universal_access_(false),
69 status_callback_(NULL) { 69 status_callback_(NULL) {
70 } 70 }
71 71
72 PPB_URLLoader_Impl::~PPB_URLLoader_Impl() { 72 PPB_URLLoader_Impl::~PPB_URLLoader_Impl() {
73 Close();
73 } 74 }
74 75
75 PPB_URLLoader_API* PPB_URLLoader_Impl::AsPPB_URLLoader_API() { 76 PPB_URLLoader_API* PPB_URLLoader_Impl::AsPPB_URLLoader_API() {
76 return this; 77 return this;
77 } 78 }
78 79
79 void PPB_URLLoader_Impl::ClearInstance() { 80 void PPB_URLLoader_Impl::ClearInstance() {
80 Resource::ClearInstance(); 81 Resource::ClearInstance();
81 loader_.reset(); 82 loader_.reset();
82 } 83 }
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 bool PPB_URLLoader_Impl::RecordDownloadProgress() const { 439 bool PPB_URLLoader_Impl::RecordDownloadProgress() const {
439 return request_info_ && request_info_->record_download_progress(); 440 return request_info_ && request_info_->record_download_progress();
440 } 441 }
441 442
442 bool PPB_URLLoader_Impl::RecordUploadProgress() const { 443 bool PPB_URLLoader_Impl::RecordUploadProgress() const {
443 return request_info_ && request_info_->record_upload_progress(); 444 return request_info_ && request_info_->record_upload_progress();
444 } 445 }
445 446
446 } // namespace ppapi 447 } // namespace ppapi
447 } // namespace webkit 448 } // 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