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

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

Issue 2035293002: Remove URLRequest::GetResponseCookies and URLRequestJob::GetResponseCookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments rogerta Created 4 years, 6 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
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job.h » ('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.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return job_->PopulateNetErrorDetails(details); 381 return job_->PopulateNetErrorDetails(details);
382 } 382 }
383 383
384 bool URLRequest::GetRemoteEndpoint(IPEndPoint* endpoint) const { 384 bool URLRequest::GetRemoteEndpoint(IPEndPoint* endpoint) const {
385 if (!job_) 385 if (!job_)
386 return false; 386 return false;
387 387
388 return job_->GetRemoteEndpoint(endpoint); 388 return job_->GetRemoteEndpoint(endpoint);
389 } 389 }
390 390
391 bool URLRequest::GetResponseCookies(ResponseCookies* cookies) {
392 DCHECK(job_.get());
393 return job_->GetResponseCookies(cookies);
394 }
395
396 void URLRequest::GetMimeType(string* mime_type) const { 391 void URLRequest::GetMimeType(string* mime_type) const {
397 DCHECK(job_.get()); 392 DCHECK(job_.get());
398 job_->GetMimeType(mime_type); 393 job_->GetMimeType(mime_type);
399 } 394 }
400 395
401 void URLRequest::GetCharset(string* charset) const { 396 void URLRequest::GetCharset(string* charset) const {
402 DCHECK(job_.get()); 397 DCHECK(job_.get());
403 job_->GetCharset(charset); 398 job_->GetCharset(charset);
404 } 399 }
405 400
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 } 1195 }
1201 1196
1202 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const { 1197 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const {
1203 if (job_) 1198 if (job_)
1204 job_->GetConnectionAttempts(out); 1199 job_->GetConnectionAttempts(out);
1205 else 1200 else
1206 out->clear(); 1201 out->clear();
1207 } 1202 }
1208 1203
1209 } // namespace net 1204 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698