diff options
author | Kristian Monsen <kristianm@google.com> | 2011-05-11 20:53:37 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-05-16 13:54:48 +0100 |
commit | 21d179b334e59e9a3bfcaed4c4430bef1bc5759d (patch) | |
tree | 64e2bb6da27af6a5c93ca34f6051584aafbfcb9e /chrome/browser/net/url_fixer_upper.h | |
parent | 0c63f00edd6ed0482fd5cbcea937ca088baf7858 (diff) | |
download | external_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.zip external_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.tar.gz external_chromium-21d179b334e59e9a3bfcaed4c4430bef1bc5759d.tar.bz2 |
Merge Chromium at 10.0.621.0: Initial merge by git.
Change-Id: I070cc91c608dfa4a968a5a54c173260765ac8097
Diffstat (limited to 'chrome/browser/net/url_fixer_upper.h')
-rw-r--r-- | chrome/browser/net/url_fixer_upper.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/net/url_fixer_upper.h b/chrome/browser/net/url_fixer_upper.h index 1e5d731..9f5beb5 100644 --- a/chrome/browser/net/url_fixer_upper.h +++ b/chrome/browser/net/url_fixer_upper.h @@ -11,6 +11,7 @@ #include "googleurl/src/gurl.h" namespace url_parse { + struct Component; struct Parsed; } @@ -62,6 +63,14 @@ namespace URLFixerUpper { GURL FixupRelativeFile(const std::wstring& base_dir, const std::wstring& text); + // Offsets the beginning index of |part| by |offset|, which is allowed to be + // negative. In some cases, the desired component does not exist at the given + // offset. For example, when converting from "http://foo" to "foo", the + // scheme component no longer exists. In such a case, the beginning index is + // set to 0. + // Does nothing if |part| is invalid. + void OffsetComponent(int offset, url_parse::Component* part); + // For paths like ~, we use $HOME for the current user's home // directory. For tests, we allow our idea of $HOME to be overriden // by this variable. |