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

Side by Side Diff: url/origin.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "url/origin.h" 5 #include "url/origin.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string.h>
9 8
10 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h"
12 #include "url/gurl.h" 9 #include "url/gurl.h"
13 #include "url/url_canon.h"
14 #include "url/url_canon_stdstring.h"
15 #include "url/url_constants.h" 10 #include "url/url_constants.h"
16 #include "url/url_util.h"
17 11
18 namespace url { 12 namespace url {
19 13
20 Origin::Origin() : unique_(true) { 14 Origin::Origin() : unique_(true) {
21 } 15 }
22 16
23 Origin::Origin(const GURL& url) : unique_(true) { 17 Origin::Origin(const GURL& url) : unique_(true) {
24 if (!url.is_valid() || (!url.IsStandard() && !url.SchemeIsBlob())) 18 if (!url.is_valid() || (!url.IsStandard() && !url.SchemeIsBlob()))
25 return; 19 return;
26 20
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 68
75 bool Origin::operator<(const Origin& other) const { 69 bool Origin::operator<(const Origin& other) const {
76 return tuple_ < other.tuple_; 70 return tuple_ < other.tuple_;
77 } 71 }
78 72
79 std::ostream& operator<<(std::ostream& out, const url::Origin& origin) { 73 std::ostream& operator<<(std::ostream& out, const url::Origin& origin) {
80 return out << origin.Serialize(); 74 return out << origin.Serialize();
81 } 75 }
82 76
83 } // namespace url 77 } // namespace url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698