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

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

Issue 242443004: Remove thread restriction of fileapi::FileSystemContext::ResolveURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_BROWSER_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>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // If |create| is true this may actually set up a filesystem instance 201 // If |create| is true this may actually set up a filesystem instance
202 // (e.g. by creating the root directory or initializing the database 202 // (e.g. by creating the root directory or initializing the database
203 // entry etc). 203 // entry etc).
204 void OpenFileSystem( 204 void OpenFileSystem(
205 const GURL& origin_url, 205 const GURL& origin_url,
206 FileSystemType type, 206 FileSystemType type,
207 OpenFileSystemMode mode, 207 OpenFileSystemMode mode,
208 const OpenFileSystemCallback& callback); 208 const OpenFileSystemCallback& callback);
209 209
210 // Opens the filesystem for the given |url| as read-only, and then checks the 210 // Opens the filesystem for the given |url| as read-only, and then checks the
211 // existence of the file entry referred by the URL. This should be called on 211 // existence of the file entry referred by the URL. Can be called from any
212 // the IO thread. 212 // thread with a message loop. |callback| is invoked on the caller thread.
213 void ResolveURL( 213 void ResolveURL(
214 const FileSystemURL& url, 214 const FileSystemURL& url,
215 const ResolveURLCallback& callback); 215 const ResolveURLCallback& callback);
216 216
217 // Attempts to mount the filesystem needed to satisfy |url_request| made 217 // Attempts to mount the filesystem needed to satisfy |url_request| made
218 // from |storage_domain|. If an appropriate file system is not found, 218 // from |storage_domain|. If an appropriate file system is not found,
219 // callback will return an error. 219 // callback will return an error.
220 void AttemptAutoMountForURLRequest(const net::URLRequest* url_request, 220 void AttemptAutoMountForURLRequest(const net::URLRequest* url_request,
221 const std::string& storage_domain, 221 const std::string& storage_domain,
222 const StatusCallback& callback); 222 const StatusCallback& callback);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 struct DefaultContextDeleter { 402 struct DefaultContextDeleter {
403 static void Destruct(const FileSystemContext* context) { 403 static void Destruct(const FileSystemContext* context) {
404 context->DeleteOnCorrectThread(); 404 context->DeleteOnCorrectThread();
405 } 405 }
406 }; 406 };
407 407
408 } // namespace fileapi 408 } // namespace fileapi
409 409
410 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 410 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698