Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef URL_ORIGIN_H_ | 5 #ifndef URL_ORIGIN_H_ |
| 6 #define URL_ORIGIN_H_ | 6 #define URL_ORIGIN_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port); | 130 Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port); |
| 131 | 131 |
| 132 SchemeHostPort tuple_; | 132 SchemeHostPort tuple_; |
| 133 bool unique_; | 133 bool unique_; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 URL_EXPORT std::ostream& operator<<(std::ostream& out, const Origin& origin); | 136 URL_EXPORT std::ostream& operator<<(std::ostream& out, const Origin& origin); |
| 137 | 137 |
| 138 URL_EXPORT bool IsSameOriginWith(const GURL& a, const GURL& b); | 138 URL_EXPORT bool IsSameOriginWith(const GURL& a, const GURL& b); |
| 139 | 139 |
| 140 inline URL_EXPORT bool operator!=(const Origin& a, const Origin& b) { | |
|
Jeffrey Yasskin
2016/04/06 05:38:31
I'm not certain it makes sense to have the non-ref
Mike West
2016/04/06 06:06:59
We only added `==` for nice output in tests from `
Jeffrey Yasskin
2016/04/06 06:17:15
Removed.
| |
| 141 return !(a == b); | |
| 142 } | |
| 143 | |
| 140 } // namespace url | 144 } // namespace url |
| 141 | 145 |
| 142 #endif // URL_ORIGIN_H_ | 146 #endif // URL_ORIGIN_H_ |
| OLD | NEW |