summaryrefslogtreecommitdiffstats
path: root/url/gurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'url/gurl.h')
-rw-r--r--url/gurl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/url/gurl.h b/url/gurl.h
index 7e71aa9..254f64b 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -8,6 +8,7 @@
#include <iosfwd>
#include <string>
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "url/url_canon.h"
#include "url/url_canon_stdstring.h"
@@ -345,7 +346,7 @@ class URL_EXPORT GURL {
// Returns the inner URL of a nested URL [currently only non-null for
// filesystem: URLs].
const GURL* inner_url() const {
- return inner_url_;
+ return inner_url_.get();
}
private:
@@ -370,7 +371,7 @@ class URL_EXPORT GURL {
url_parse::Parsed parsed_;
// Used for nested schemes [currently only filesystem:].
- GURL* inner_url_;
+ scoped_ptr<GURL> inner_url_;
// TODO bug 684583: Add encoding for query params.
};