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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.cc

Issue 16043006: Rename FileSystemMountPointProvider::ValidateFileSystemRoot to OpenFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h" 5 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h"
6 6
7 #include "base/chromeos/chromeos_version.h" 7 #include "base/chromeos/chromeos_version.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 case fileapi::kFileSystemTypeDrive: 84 case fileapi::kFileSystemTypeDrive:
85 case fileapi::kFileSystemTypeRestrictedNativeLocal: 85 case fileapi::kFileSystemTypeRestrictedNativeLocal:
86 case fileapi::kFileSystemTypeNativeLocal: 86 case fileapi::kFileSystemTypeNativeLocal:
87 case fileapi::kFileSystemTypeNativeForPlatformApp: 87 case fileapi::kFileSystemTypeNativeForPlatformApp:
88 return true; 88 return true;
89 default: 89 default:
90 return false; 90 return false;
91 } 91 }
92 } 92 }
93 93
94 void CrosMountPointProvider::ValidateFileSystemRoot( 94 void CrosMountPointProvider::OpenFileSystem(
95 const GURL& origin_url, 95 const GURL& origin_url,
96 fileapi::FileSystemType type, 96 fileapi::FileSystemType type,
97 bool create, 97 fileapi::OpenFileSystemMode mode,
98 const ValidateFileSystemCallback& callback) { 98 const OpenFileSystemCallback& callback) {
99 DCHECK(fileapi::IsolatedContext::IsIsolatedType(type)); 99 DCHECK(fileapi::IsolatedContext::IsIsolatedType(type));
100 // Nothing to validate for external filesystem. 100 // Nothing to validate for external filesystem.
101 callback.Run(base::PLATFORM_FILE_OK); 101 callback.Run(base::PLATFORM_FILE_OK);
102 } 102 }
103 103
104 fileapi::FileSystemQuotaUtil* CrosMountPointProvider::GetQuotaUtil() { 104 fileapi::FileSystemQuotaUtil* CrosMountPointProvider::GetQuotaUtil() {
105 // No quota support. 105 // No quota support.
106 return NULL; 106 return NULL;
107 } 107 }
108 108
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 std::string mount_name = url.filesystem_id(); 350 std::string mount_name = url.filesystem_id();
351 if (!mount_points_->GetRegisteredPath(mount_name, &root_path) && 351 if (!mount_points_->GetRegisteredPath(mount_name, &root_path) &&
352 !system_mount_points_->GetRegisteredPath(mount_name, &root_path)) { 352 !system_mount_points_->GetRegisteredPath(mount_name, &root_path)) {
353 return base::FilePath(); 353 return base::FilePath();
354 } 354 }
355 355
356 return root_path.DirName(); 356 return root_path.DirName();
357 } 357 }
358 358
359 } // namespace chromeos 359 } // namespace chromeos
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.h ('k') | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698