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/origin.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/origin.h')
-rw-r--r-- | url/origin.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/url/origin.h b/url/origin.h index 15fe0ea..01703ef 100644 --- a/url/origin.h +++ b/url/origin.h @@ -89,11 +89,8 @@ class URL_EXPORT Origin { ~Origin(); // For unique origins, these return ("", "", 0). - // - // TODO(mkwst): These should be 'const std::string&', along with their - // 'url::SchemeHostPort' analogs. - std::string scheme() const { return tuple_.scheme(); } - std::string host() const { return tuple_.host(); } + const std::string& scheme() const { return tuple_.scheme(); } + const std::string& host() const { return tuple_.host(); } uint16 port() const { return tuple_.port(); } bool unique() const { return unique_; } |