diff options
author | mkwst <mkwst@chromium.org> | 2015-07-22 01:29:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-22 08:29:49 +0000 |
commit | f5fef0669c7e478a88d9d11239454bdff751c7e1 (patch) | |
tree | 8ed815c36635bda6b600e869cefdd3977a211d19 /url/scheme_host_port.h | |
parent | 77011c247129b6658e04b39f00ad2eecc8b62087 (diff) | |
download | chromium_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.h | 4 |
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; |