| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // std::map). | 123 // std::map). |
| 124 bool operator<(const Origin& other) const; | 124 bool operator<(const Origin& other) const; |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port); | 127 Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port); |
| 128 | 128 |
| 129 SchemeHostPort tuple_; | 129 SchemeHostPort tuple_; |
| 130 bool unique_; | 130 bool unique_; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 URL_EXPORT std::ostream& operator<<(std::ostream& out, | 133 URL_EXPORT std::ostream& operator<<(std::ostream& out, const Origin& origin); |
| 134 const Origin& origin); | 134 |
| 135 URL_EXPORT bool IsSameOriginWith(const GURL& a, const GURL& b); |
| 135 | 136 |
| 136 } // namespace url | 137 } // namespace url |
| 137 | 138 |
| 138 #endif // URL_ORIGIN_H_ | 139 #endif // URL_ORIGIN_H_ |
| OLD | NEW |