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

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

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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
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.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 void URLRequest::SetExtraRequestHeaders( 366 void URLRequest::SetExtraRequestHeaders(
367 const HttpRequestHeaders& headers) { 367 const HttpRequestHeaders& headers) {
368 DCHECK(!is_pending_); 368 DCHECK(!is_pending_);
369 extra_request_headers_ = headers; 369 extra_request_headers_ = headers;
370 370
371 // NOTE: This method will likely become non-trivial once the other setters 371 // NOTE: This method will likely become non-trivial once the other setters
372 // for request headers are implemented. 372 // for request headers are implemented.
373 } 373 }
374 374
375 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const { 375 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const {
376 if (!job_) 376 if (!job_.get())
377 return false; 377 return false;
378 378
379 return job_->GetFullRequestHeaders(headers); 379 return job_->GetFullRequestHeaders(headers);
380 } 380 }
381 381
382 LoadStateWithParam URLRequest::GetLoadState() const { 382 LoadStateWithParam URLRequest::GetLoadState() const {
383 if (blocked_on_delegate_) { 383 if (blocked_on_delegate_) {
384 return LoadStateWithParam(LOAD_STATE_WAITING_FOR_DELEGATE, 384 return LoadStateWithParam(LOAD_STATE_WAITING_FOR_DELEGATE,
385 load_state_param_); 385 load_state_param_);
386 } 386 }
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 new base::debug::StackTrace(NULL, 0); 1097 new base::debug::StackTrace(NULL, 0);
1098 *stack_trace_copy = stack_trace; 1098 *stack_trace_copy = stack_trace;
1099 stack_trace_.reset(stack_trace_copy); 1099 stack_trace_.reset(stack_trace_copy);
1100 } 1100 }
1101 1101
1102 const base::debug::StackTrace* URLRequest::stack_trace() const { 1102 const base::debug::StackTrace* URLRequest::stack_trace() const {
1103 return stack_trace_.get(); 1103 return stack_trace_.get();
1104 } 1104 }
1105 1105
1106 } // namespace net 1106 } // namespace net
OLDNEW
« no previous file with comments | « net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp ('k') | ppapi/proxy/file_ref_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698