| Index: webkit/fileapi/external_mount_points.cc
|
| diff --git a/webkit/fileapi/external_mount_points.cc b/webkit/fileapi/external_mount_points.cc
|
| index 9abba4218cfe17fb4bcf2609a2ea7e4ca6690cba..30d16fa8d7374f70d5c02d7b2752c135b83c9eeb 100644
|
| --- a/webkit/fileapi/external_mount_points.cc
|
| +++ b/webkit/fileapi/external_mount_points.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/lazy_instance.h"
|
| #include "base/path_service.h"
|
| #include "base/stl_util.h"
|
| +#include "webkit/fileapi/file_system_url.h"
|
| #include "webkit/fileapi/remote_file_system_proxy.h"
|
|
|
| namespace {
|
| @@ -240,6 +241,25 @@ void ExternalMountPoints::AddMountPointInfosTo(
|
| }
|
| }
|
|
|
| +bool ExternalMountPoints::CanHandleURL(const FileSystemURL& url) const {
|
| + return url.is_valid() && url.type() == kFileSystemTypeExternal;
|
| +}
|
| +
|
| +FileSystemURL ExternalMountPoints::CrackURL(const FileSystemURL& url) const {
|
| + if (!CanHandleURL(url))
|
| + return FileSystemURL();
|
| +
|
| + DCHECK(!url.is_cracked());
|
| +
|
| + std::string mount_name;
|
| + FileSystemType type;
|
| + FilePath path;
|
| + if (!CrackVirtualPath(url.path(), &mount_name, &type, &path))
|
| + return FileSystemURL();
|
| +
|
| + return FileSystemURL::CreateForCrackedURL(url, mount_name, type, path);
|
| +}
|
| +
|
| bool ExternalMountPoints::GetVirtualPath(const FilePath& path_in,
|
| FilePath* virtual_path) {
|
| DCHECK(virtual_path);
|
|
|