Chromium Code Reviews| Index: base/file_path.h |
| diff --git a/base/file_path.h b/base/file_path.h |
| index 84bb35005f605bf8feab076c3ceb2f09abcd6d51..1afa7a6a8fe18b080f6da28ba7d223b14aed08a3 100644 |
| --- a/base/file_path.h |
| +++ b/base/file_path.h |
| @@ -283,6 +283,11 @@ class FilePath { |
| // want to stuff a string16 into some other API. |
| string16 LossyDisplayName() const; |
| + // Return the path as ASCII, or the empty string if the path is not ASCII. |
| + // This should only be used for cases where the FilePath is representing a |
| + // known-ASCII filename. |
| + std::string MaybeAsASCII() const; |
|
Avi (use Gerrit)
2011/03/01 19:56:36
method name FTW
|
| + |
| // Older Chromium code assumes that paths are always wstrings. |
| // These functions convert wstrings to/from FilePaths, and are |
| // useful to smooth porting that old code to the FilePath API. |