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

Side by Side Diff: webkit/browser/fileapi/isolated_file_system_backend.cc

Issue 19092002: FileAPI: Change FileSystemBackend::OpenFileSystem signature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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/browser/fileapi/isolated_file_system_backend.h" 5 #include "webkit/browser/fileapi/isolated_file_system_backend.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #if !defined(OS_CHROMEOS) 49 #if !defined(OS_CHROMEOS)
50 case kFileSystemTypeNativeLocal: 50 case kFileSystemTypeNativeLocal:
51 case kFileSystemTypeNativeForPlatformApp: 51 case kFileSystemTypeNativeForPlatformApp:
52 return true; 52 return true;
53 #endif 53 #endif
54 default: 54 default:
55 return false; 55 return false;
56 } 56 }
57 } 57 }
58 58
59 void IsolatedFileSystemBackend::OpenFileSystem( 59 void IsolatedFileSystemBackend::InitializeFileSystem(
60 const GURL& origin_url, 60 const GURL& origin_url,
61 FileSystemType type, 61 FileSystemType type,
62 OpenFileSystemMode mode, 62 OpenFileSystemMode mode,
63 const OpenFileSystemCallback& callback) { 63 FileSystemContext* context,
64 const InitializeFileSystemCallback& callback) {
64 // We never allow opening a new isolated FileSystem via usual OpenFileSystem. 65 // We never allow opening a new isolated FileSystem via usual OpenFileSystem.
65 base::MessageLoopProxy::current()->PostTask( 66 base::MessageLoopProxy::current()->PostTask(
66 FROM_HERE, 67 FROM_HERE,
67 base::Bind(callback, 68 base::Bind(callback,
68 GetFileSystemRootURI(origin_url, type), 69 GetFileSystemRootURI(origin_url, type),
69 GetFileSystemName(origin_url, type), 70 GetFileSystemName(origin_url, type),
70 base::PLATFORM_FILE_ERROR_SECURITY)); 71 base::PLATFORM_FILE_ERROR_SECURITY));
71 } 72 }
72 73
73 FileSystemFileUtil* IsolatedFileSystemBackend::GetFileUtil( 74 FileSystemFileUtil* IsolatedFileSystemBackend::GetFileUtil(
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return scoped_ptr<FileStreamWriter>(new LocalFileStreamWriter( 136 return scoped_ptr<FileStreamWriter>(new LocalFileStreamWriter(
136 context->task_runners()->file_task_runner(), url.path(), offset)); 137 context->task_runners()->file_task_runner(), url.path(), offset));
137 } 138 }
138 139
139 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() { 140 FileSystemQuotaUtil* IsolatedFileSystemBackend::GetQuotaUtil() {
140 // No quota support. 141 // No quota support.
141 return NULL; 142 return NULL;
142 } 143 }
143 144
144 } // namespace fileapi 145 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_file_system_backend.h ('k') | webkit/browser/fileapi/sandbox_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698