| Index: net/base/net_util.h
|
| diff --git a/net/base/net_util.h b/net/base/net_util.h
|
| index ecd7400cfa16e516a1d986ea76a807db5faa07a5..f241f4fd42339fd733e68aaeb2901ef20725ce07 100644
|
| --- a/net/base/net_util.h
|
| +++ b/net/base/net_util.h
|
| @@ -298,10 +298,9 @@ NET_EXPORT base::FilePath GenerateFileName(
|
| const std::string& mime_type,
|
| const std::string& default_name);
|
|
|
| -// Valid basenames:
|
| +// Valid components:
|
| // * are not empty
|
| // * are not Windows reserved names (CON, NUL.zip, etc.)
|
| -// * are just basenames
|
| // * do not have trailing separators
|
| // * do not equal kCurrentDirectory
|
| // * do not reference the parent directory
|
| @@ -311,7 +310,7 @@ NET_EXPORT base::FilePath GenerateFileName(
|
| // - * do not end with Windows shell-integrated extensions (even on posix)
|
| // - * do not begin with '.' (which would hide them in most file managers)
|
| // - * do not end with ' ' or '.'
|
| -NET_EXPORT bool IsSafePortableBasename(const base::FilePath& path);
|
| +NET_EXPORT bool IsSafePortablePathComponent(const base::FilePath& component);
|
|
|
| // Basenames of valid relative paths are IsSafePortableBasename(), and internal
|
| // path components of valid relative paths are valid path components as
|
|
|