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

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

Issue 23494023: Mark URLRequest::GetResponseCode() as const (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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 | « net/url_request/url_request.h ('k') | 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) 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void URLRequest::GetMimeType(string* mime_type) { 446 void URLRequest::GetMimeType(string* mime_type) {
447 DCHECK(job_.get()); 447 DCHECK(job_.get());
448 job_->GetMimeType(mime_type); 448 job_->GetMimeType(mime_type);
449 } 449 }
450 450
451 void URLRequest::GetCharset(string* charset) { 451 void URLRequest::GetCharset(string* charset) {
452 DCHECK(job_.get()); 452 DCHECK(job_.get());
453 job_->GetCharset(charset); 453 job_->GetCharset(charset);
454 } 454 }
455 455
456 int URLRequest::GetResponseCode() { 456 int URLRequest::GetResponseCode() const {
457 DCHECK(job_.get()); 457 DCHECK(job_.get());
458 return job_->GetResponseCode(); 458 return job_->GetResponseCode();
459 } 459 }
460 460
461 // static 461 // static
462 void URLRequest::SetDefaultCookiePolicyToBlock() { 462 void URLRequest::SetDefaultCookiePolicyToBlock() {
463 CHECK(!g_url_requests_started); 463 CHECK(!g_url_requests_started);
464 g_default_can_use_cookies = false; 464 g_default_can_use_cookies = false;
465 } 465 }
466 466
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 new base::debug::StackTrace(NULL, 0); 1108 new base::debug::StackTrace(NULL, 0);
1109 *stack_trace_copy = stack_trace; 1109 *stack_trace_copy = stack_trace;
1110 stack_trace_.reset(stack_trace_copy); 1110 stack_trace_.reset(stack_trace_copy);
1111 } 1111 }
1112 1112
1113 const base::debug::StackTrace* URLRequest::stack_trace() const { 1113 const base::debug::StackTrace* URLRequest::stack_trace() const {
1114 return stack_trace_.get(); 1114 return stack_trace_.get();
1115 } 1115 }
1116 1116
1117 } // namespace net 1117 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698