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

Side by Side Diff: url/origin.h

Issue 1658913002: Make extensions use a correct same-origin check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 4 years, 10 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 #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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698