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

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

Issue 101393006: FileAPI: Rename *OnFileThread to *OnFileTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 FileSystemContext( 98 FileSystemContext(
99 base::SingleThreadTaskRunner* io_task_runner, 99 base::SingleThreadTaskRunner* io_task_runner,
100 base::SequencedTaskRunner* file_task_runner, 100 base::SequencedTaskRunner* file_task_runner,
101 ExternalMountPoints* external_mount_points, 101 ExternalMountPoints* external_mount_points,
102 quota::SpecialStoragePolicy* special_storage_policy, 102 quota::SpecialStoragePolicy* special_storage_policy,
103 quota::QuotaManagerProxy* quota_manager_proxy, 103 quota::QuotaManagerProxy* quota_manager_proxy,
104 ScopedVector<FileSystemBackend> additional_backends, 104 ScopedVector<FileSystemBackend> additional_backends,
105 const base::FilePath& partition_path, 105 const base::FilePath& partition_path,
106 const FileSystemOptions& options); 106 const FileSystemOptions& options);
107 107
108 // TODO(nhiroki): Rename *OnFileThread methods since these are no longer on 108 bool DeleteDataForOriginOnFileTaskRunner(const GURL& origin_url);
109 // FILE thread.
110 bool DeleteDataForOriginOnFileThread(const GURL& origin_url);
111 109
112 // Creates a new QuotaReservation for the given |origin_url| and |type|. 110 // Creates a new QuotaReservation for the given |origin_url| and |type|.
113 // Returns NULL if |type| does not support quota or reservation fails. 111 // Returns NULL if |type| does not support quota or reservation fails.
114 // This should be run on |default_file_task_runner_| and the returned value 112 // This should be run on |default_file_task_runner_| and the returned value
115 // should be destroyed on the runner. 113 // should be destroyed on the runner.
116 scoped_refptr<QuotaReservation> CreateQuotaReservationOnFileTaskRunner( 114 scoped_refptr<QuotaReservation> CreateQuotaReservationOnFileTaskRunner(
117 const GURL& origin_url, 115 const GURL& origin_url,
118 FileSystemType type); 116 FileSystemType type);
119 117
120 quota::QuotaManagerProxy* quota_manager_proxy() const { 118 quota::QuotaManagerProxy* quota_manager_proxy() const {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 371
374 struct DefaultContextDeleter { 372 struct DefaultContextDeleter {
375 static void Destruct(const FileSystemContext* context) { 373 static void Destruct(const FileSystemContext* context) {
376 context->DeleteOnCorrectThread(); 374 context->DeleteOnCorrectThread();
377 } 375 }
378 }; 376 };
379 377
380 } // namespace fileapi 378 } // namespace fileapi
381 379
382 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 380 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/test_file_system_backend.cc ('k') | webkit/browser/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698