summaryrefslogtreecommitdiffstats
path: root/base/file_path.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 20:40:13 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 20:40:13 +0000
commit34004eea5940a37644ce70707470647091958cd2 (patch)
treec8adb835c89f8985093829aba92a8f1156449405 /base/file_path.h
parent60d7ac9547b08ce7f9b8bcc48bd4fc420c8b07a9 (diff)
downloadchromium_src-34004eea5940a37644ce70707470647091958cd2.zip
chromium_src-34004eea5940a37644ce70707470647091958cd2.tar.gz
chromium_src-34004eea5940a37644ce70707470647091958cd2.tar.bz2
Backing out r6299 due to DirectoryWatcherTest.SubDir (base_unittests) failure
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.h')
-rw-r--r--base/file_path.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/file_path.h b/base/file_path.h
index fb2cc57..fc55a7a 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -146,7 +146,6 @@ class FilePath {
// only to |component| is returned. |component| must be a relative path;
// it is an error to pass an absolute path.
FilePath Append(const StringType& component) const WARN_UNUSED_RESULT;
- FilePath Append(const FilePath& component) const WARN_UNUSED_RESULT;
// Returns true if this FilePath contains an absolute path. On Windows, an
// absolute path begins with either a drive letter specification followed by
@@ -169,6 +168,13 @@ class FilePath {
std::wstring ToWStringHack() const;
private:
+ // If this FilePath contains a drive letter specification, returns the
+ // position of the last character of the drive letter specification,
+ // otherwise returns npos. This can only be true on Windows, when a pathname
+ // begins with a letter followed by a colon. On other platforms, this always
+ // returns npos.
+ StringType::size_type FindDriveLetter() const;
+
// Remove trailing separators from this object. If the path is absolute, it
// will never be stripped any more than to refer to the absolute root
// directory, so "////" will become "/", not "". A leading pair of