Chromium Code Reviews| Index: url/gurl.cc |
| diff --git a/url/gurl.cc b/url/gurl.cc |
| index 229df5dca2dbd6d1ab3de26c96d4d3afca49b60b..a99830c1a5d508758899efc10a88f3466888a632 100644 |
| --- a/url/gurl.cc |
| +++ b/url/gurl.cc |
| @@ -419,6 +419,10 @@ std::string GURL::HostNoBrackets() const { |
| return ComponentString(h); |
| } |
| +std::string GURL::GetContent() const { |
| + return is_valid_ ? ComponentString(parsed_.GetContent()) : std::string(); |
| +} |
| + |
| bool GURL::HostIsIPAddress() const { |
| if (!is_valid_ || spec_.empty()) |
| return false; |