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

Unified Diff: url/origin.h

Issue 1542703002: Switch to standard integer types in url/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « url/gurl_unittest.cc ('k') | url/origin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin.h
diff --git a/url/origin.h b/url/origin.h
index dc2f85f94d0dc278ae6f758636ef5518b612fd0d..3b9f50bd8c7cb836612ab65662d1b71ede567bab 100644
--- a/url/origin.h
+++ b/url/origin.h
@@ -5,6 +5,8 @@
#ifndef URL_ORIGIN_H_
#define URL_ORIGIN_H_
+#include <stdint.h>
+
#include <string>
#include "base/strings/string16.h"
@@ -98,14 +100,14 @@ class URL_EXPORT Origin {
static Origin UnsafelyCreateOriginWithoutNormalization(
base::StringPiece scheme,
base::StringPiece host,
- uint16 port);
+ uint16_t port);
~Origin();
// For unique origins, these return ("", "", 0).
const std::string& scheme() const { return tuple_.scheme(); }
const std::string& host() const { return tuple_.host(); }
- uint16 port() const { return tuple_.port(); }
+ uint16_t port() const { return tuple_.port(); }
bool unique() const { return unique_; }
@@ -122,7 +124,7 @@ class URL_EXPORT Origin {
bool operator<(const Origin& other) const;
private:
- Origin(base::StringPiece scheme, base::StringPiece host, uint16 port);
+ Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port);
SchemeHostPort tuple_;
bool unique_;
« no previous file with comments | « url/gurl_unittest.cc ('k') | url/origin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698