summaryrefslogtreecommitdiffstats
path: root/url/scheme_host_port.h
diff options
context:
space:
mode:
authormkwst <mkwst@chromium.org>2015-07-22 01:29:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-22 08:29:49 +0000
commitf5fef0669c7e478a88d9d11239454bdff751c7e1 (patch)
tree8ed815c36635bda6b600e869cefdd3977a211d19 /url/scheme_host_port.h
parent77011c247129b6658e04b39f00ad2eecc8b62087 (diff)
downloadchromium_src-f5fef0669c7e478a88d9d11239454bdff751c7e1.zip
chromium_src-f5fef0669c7e478a88d9d11239454bdff751c7e1.tar.gz
chromium_src-f5fef0669c7e478a88d9d11239454bdff751c7e1.tar.bz2
Constify SchemeHostPort and Origin accessors.
BUG=490074 R=rsleevi@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/1229003007 Cr-Commit-Position: refs/heads/master@{#339846}
Diffstat (limited to 'url/scheme_host_port.h')
-rw-r--r--url/scheme_host_port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/url/scheme_host_port.h b/url/scheme_host_port.h
index 227c1f1..2cc9e07 100644
--- a/url/scheme_host_port.h
+++ b/url/scheme_host_port.h
@@ -96,8 +96,8 @@ class URL_EXPORT SchemeHostPort {
// Returns the host component, in URL form. That is all IDN domain names will
// be expressed as A-Labels ('☃.net' will be returned as 'xn--n3h.net'), and
// and all IPv6 addresses will be enclosed in brackets ("[2001:db8::1]").
- std::string host() const { return host_; }
- std::string scheme() const { return scheme_; }
+ const std::string& host() const { return host_; }
+ const std::string& scheme() const { return scheme_; }
uint16 port() const { return port_; }
bool IsInvalid() const;