| Index: url/gurl.cc
|
| diff --git a/url/gurl.cc b/url/gurl.cc
|
| index 3dd8463c658b243ccef5d5ddabeb51215f1e1197..69fcfc29f1bbc00e1bb9bf0b1e349becb93a05b9 100644
|
| --- a/url/gurl.cc
|
| +++ b/url/gurl.cc
|
| @@ -374,6 +374,13 @@ std::string GURL::ExtractFileName() const {
|
| return ComponentString(file_component);
|
| }
|
|
|
| +std::string GURL::ExtractFileExtension() const {
|
| + url_parse::Component file_extension_component;
|
| + url_parse::ExtractFileExtension(spec_.data(), parsed_.path,
|
| + &file_extension_component);
|
| + return ComponentString(file_extension_component);
|
| +}
|
| +
|
| std::string GURL::PathForRequest() const {
|
| DCHECK(parsed_.path.len > 0) << "Canonical path for requests should be non-empty";
|
| if (parsed_.ref.len >= 0) {
|
|
|