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

Side by Side Diff: webkit/fileapi/file_system_context.h

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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/platform_file.h" 16 #include "base/platform_file.h"
17 #include "base/sequenced_task_runner_helpers.h" 17 #include "base/sequenced_task_runner_helpers.h"
18 #include "webkit/browser/fileapi/open_file_system_mode.h"
18 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" 19 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h"
19 #include "webkit/fileapi/file_system_types.h" 20 #include "webkit/fileapi/file_system_types.h"
20 #include "webkit/fileapi/file_system_url.h" 21 #include "webkit/fileapi/file_system_url.h"
21 #include "webkit/storage/webkit_storage_export.h" 22 #include "webkit/storage/webkit_storage_export.h"
22 23
23 namespace base { 24 namespace base {
24 class FilePath; 25 class FilePath;
25 } 26 }
26 27
27 namespace chrome { 28 namespace chrome {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 DeleteFileSystemCallback; 151 DeleteFileSystemCallback;
151 152
152 // Opens the filesystem for the given |origin_url| and |type|, and dispatches 153 // Opens the filesystem for the given |origin_url| and |type|, and dispatches
153 // |callback| on completion. 154 // |callback| on completion.
154 // If |create| is true this may actually set up a filesystem instance 155 // If |create| is true this may actually set up a filesystem instance
155 // (e.g. by creating the root directory or initializing the database 156 // (e.g. by creating the root directory or initializing the database
156 // entry etc). 157 // entry etc).
157 void OpenFileSystem( 158 void OpenFileSystem(
158 const GURL& origin_url, 159 const GURL& origin_url,
159 FileSystemType type, 160 FileSystemType type,
160 bool create, 161 OpenFileSystemMode mode,
161 const OpenFileSystemCallback& callback); 162 const OpenFileSystemCallback& callback);
162 163
163 // Opens a syncable filesystem for the given |origin_url|. 164 // Opens a syncable filesystem for the given |origin_url|.
164 // The file system is internally mounted as an external file system at the 165 // The file system is internally mounted as an external file system at the
165 // given |mount_name|. 166 // given |mount_name|.
166 // Currently only kFileSystemTypeSyncable type is supported. 167 // Currently only kFileSystemTypeSyncable type is supported.
168 // TODO(kinuko): Deprecate this method. (http://crbug.com/177137)
167 void OpenSyncableFileSystem( 169 void OpenSyncableFileSystem(
168 const std::string& mount_name, 170 const std::string& mount_name,
169 const GURL& origin_url, 171 const GURL& origin_url,
170 FileSystemType type, 172 FileSystemType type,
171 bool create, 173 OpenFileSystemMode mode,
172 const OpenFileSystemCallback& callback); 174 const OpenFileSystemCallback& callback);
173 175
174 // Deletes the filesystem for the given |origin_url| and |type|. This should 176 // Deletes the filesystem for the given |origin_url| and |type|. This should
175 // be called on the IO Thread. 177 // be called on the IO Thread.
176 void DeleteFileSystem( 178 void DeleteFileSystem(
177 const GURL& origin_url, 179 const GURL& origin_url,
178 FileSystemType type, 180 FileSystemType type,
179 const DeleteFileSystemCallback& callback); 181 const DeleteFileSystemCallback& callback);
180 182
181 // Creates a new FileSystemOperation instance by getting an appropriate 183 // Creates a new FileSystemOperation instance by getting an appropriate
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 302
301 struct DefaultContextDeleter { 303 struct DefaultContextDeleter {
302 static void Destruct(const FileSystemContext* context) { 304 static void Destruct(const FileSystemContext* context) {
303 context->DeleteOnCorrectThread(); 305 context->DeleteOnCorrectThread();
304 } 306 }
305 }; 307 };
306 308
307 } // namespace fileapi 309 } // namespace fileapi
308 310
309 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 311 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698