Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: webkit/fileapi/isolated_context.cc

Issue 10879002: kFileSystemTypeIsolated should be only used in the URL exposed to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_context.cc
diff --git a/webkit/fileapi/isolated_context.cc b/webkit/fileapi/isolated_context.cc
index a6256931764d9b253a3485c2407b598f52879fef..b42a304e3a8a9b3e55da28d1e995c04cbb692e49 100644
--- a/webkit/fileapi/isolated_context.cc
+++ b/webkit/fileapi/isolated_context.cc
@@ -107,7 +107,7 @@ bool IsolatedContext::FileInfoSet::AddPathWithName(
class IsolatedContext::Instance {
public:
- typedef FileSystemMountType MountType;
+ typedef FileSystemType MountType;
// For a single-path isolated file system, which could be registered by
// IsolatedContext::RegisterFileSystemForPath().
@@ -157,7 +157,7 @@ class IsolatedContext::Instance {
IsolatedContext::Instance::Instance(FileSystemType type,
const FileInfo& file_info)
- : mount_type_(kFileSystemMountTypeIsolated),
+ : mount_type_(kFileSystemTypeIsolated),
type_(type),
file_info_(file_info),
ref_counts_(0) {
@@ -166,7 +166,7 @@ IsolatedContext::Instance::Instance(FileSystemType type,
IsolatedContext::Instance::Instance(FileSystemType type,
const std::set<FileInfo>& files)
- : mount_type_(kFileSystemMountTypeIsolated),
+ : mount_type_(kFileSystemTypeIsolated),
type_(type),
files_(files),
ref_counts_(0) {
@@ -175,7 +175,7 @@ IsolatedContext::Instance::Instance(FileSystemType type,
IsolatedContext::Instance::Instance(FileSystemType type,
const FilePath& path)
- : mount_type_(kFileSystemMountTypeExternal),
+ : mount_type_(kFileSystemTypeExternal),
type_(type),
file_info_(FileInfo("", path)),
ref_counts_(0) {
@@ -265,7 +265,7 @@ IsolatedContext::GetExternalMountPoints() const {
for (IDToInstance::const_iterator iter = instance_map_.begin();
iter != instance_map_.end();
++iter) {
- if (iter->second->mount_type() == kFileSystemMountTypeExternal)
+ if (iter->second->mount_type() == kFileSystemTypeExternal)
files.push_back(FileInfo(iter->first, iter->second->file_info().path));
}
return files;
@@ -312,7 +312,7 @@ void IsolatedContext::RemoveReference(const std::string& filesystem_id) {
DCHECK(instance->ref_counts() > 0);
instance->RemoveRef();
if (instance->ref_counts() == 0 &&
- instance->mount_type() != kFileSystemMountTypeExternal) {
+ instance->mount_type() != kFileSystemTypeExternal) {
bool deleted = UnregisterFileSystem(filesystem_id);
DCHECK(deleted);
}
@@ -351,7 +351,7 @@ bool IsolatedContext::CrackIsolatedPath(const FilePath& virtual_path,
if (type)
*type = instance->type();
switch (instance->mount_type()) {
- case kFileSystemMountTypeIsolated: {
+ case kFileSystemTypeIsolated: {
if (component_iter == components.end()) {
// The virtual root case.
path->clear();
@@ -363,10 +363,10 @@ bool IsolatedContext::CrackIsolatedPath(const FilePath& virtual_path,
return false;
break;
}
- case kFileSystemMountTypeExternal:
+ case kFileSystemTypeExternal:
cracked_path = instance->file_info().path;
break;
- case kFileSystemMountTypeUnknown:
+ default:
NOTREACHED();
break;
}
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698