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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 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
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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 void URLRequest::set_first_party_url_policy( 466 void URLRequest::set_first_party_url_policy(
467 FirstPartyURLPolicy first_party_url_policy) { 467 FirstPartyURLPolicy first_party_url_policy) {
468 DCHECK(!is_pending_); 468 DCHECK(!is_pending_);
469 first_party_url_policy_ = first_party_url_policy; 469 first_party_url_policy_ = first_party_url_policy;
470 } 470 }
471 471
472 void URLRequest::set_initiator(const base::Optional<url::Origin>& initiator) { 472 void URLRequest::set_initiator(const base::Optional<url::Origin>& initiator) {
473 DCHECK(!is_pending_); 473 DCHECK(!is_pending_);
474 DCHECK(!initiator.has_value() || initiator.value().unique() || 474 DCHECK(!initiator.has_value() || initiator.value().opaque() ||
475 initiator.value().GetURL().is_valid()); 475 initiator.value().GetURL().is_valid());
476 initiator_ = initiator; 476 initiator_ = initiator;
477 } 477 }
478 478
479 void URLRequest::set_method(const std::string& method) { 479 void URLRequest::set_method(const std::string& method) {
480 DCHECK(!is_pending_); 480 DCHECK(!is_pending_);
481 method_ = method; 481 method_ = method;
482 } 482 }
483 483
484 void URLRequest::SetReferrer(const std::string& referrer) { 484 void URLRequest::SetReferrer(const std::string& referrer) {
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 request_headers_callback_ = std::move(callback); 1205 request_headers_callback_ = std::move(callback);
1206 } 1206 }
1207 1207
1208 void URLRequest::set_status(URLRequestStatus status) { 1208 void URLRequest::set_status(URLRequestStatus status) {
1209 DCHECK(status_.is_io_pending() || status_.is_success() || 1209 DCHECK(status_.is_io_pending() || status_.is_success() ||
1210 (!status.is_success() && !status.is_io_pending())); 1210 (!status.is_success() && !status.is_io_pending()));
1211 status_ = status; 1211 status_ = status;
1212 } 1212 }
1213 1213
1214 } // namespace net 1214 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | third_party/WebKit/Source/platform/mojo/SecurityOriginStructTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698