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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 11419034: net: Move ownership of UploadDataStream from URLRequestHttpJob to URLRequest (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove a local variable Created 8 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
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 21 matching lines...) Expand all
32 has_handled_response_(false), 32 has_handled_response_(false),
33 expected_content_size_(-1), 33 expected_content_size_(-1),
34 deferred_redirect_status_code_(-1), 34 deferred_redirect_status_code_(-1),
35 network_delegate_(network_delegate), 35 network_delegate_(network_delegate),
36 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 36 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
37 base::SystemMonitor* system_monitor = base::SystemMonitor::Get(); 37 base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
38 if (system_monitor) 38 if (system_monitor)
39 base::SystemMonitor::Get()->AddPowerObserver(this); 39 base::SystemMonitor::Get()->AddPowerObserver(this);
40 } 40 }
41 41
42 void URLRequestJob::SetUpload(UploadData* upload) { 42 void URLRequestJob::SetUpload(UploadDataStream* upload) {
43 } 43 }
44 44
45 void URLRequestJob::SetExtraRequestHeaders(const HttpRequestHeaders& headers) { 45 void URLRequestJob::SetExtraRequestHeaders(const HttpRequestHeaders& headers) {
46 } 46 }
47 47
48 void URLRequestJob::Kill() { 48 void URLRequestJob::Kill() {
49 weak_factory_.InvalidateWeakPtrs(); 49 weak_factory_.InvalidateWeakPtrs();
50 // Make sure the request is notified that we are done. We assume that the 50 // Make sure the request is notified that we are done. We assume that the
51 // request took care of setting its error status before calling Kill. 51 // request took care of setting its error status before calling Kill.
52 if (request_) 52 if (request_)
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 } 702 }
703 703
704 bool URLRequestJob::FilterHasData() { 704 bool URLRequestJob::FilterHasData() {
705 return filter_.get() && filter_->stream_data_len(); 705 return filter_.get() && filter_->stream_data_len();
706 } 706 }
707 707
708 void URLRequestJob::UpdatePacketReadTimes() { 708 void URLRequestJob::UpdatePacketReadTimes() {
709 } 709 }
710 710
711 } // namespace net 711 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698