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

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

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 8 years, 4 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_ISOLATED_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/ref_counted.h"
11 #include "webkit/fileapi/file_system_mount_point_provider.h" 12 #include "webkit/fileapi/file_system_mount_point_provider.h"
12 13
14 namespace base {
15 class SequencedTaskRunner;
16 }
17
13 namespace fileapi { 18 namespace fileapi {
14 19
15 class DraggedFileUtil; 20 class DraggedFileUtil;
16 class IsolatedContext; 21 class IsolatedContext;
17 class IsolatedFileUtil; 22 class IsolatedFileUtil;
18 class MediaPathFilter; 23 class MediaPathFilter;
19 class NativeMediaFileUtil; 24 class NativeMediaFileUtil;
20 25
21 class IsolatedMountPointProvider : public FileSystemMountPointProvider { 26 class IsolatedMountPointProvider : public FileSystemMountPointProvider {
22 public: 27 public:
23 typedef FileSystemMountPointProvider::ValidateFileSystemCallback 28 typedef FileSystemMountPointProvider::ValidateFileSystemCallback
24 ValidateFileSystemCallback; 29 ValidateFileSystemCallback;
25 30
26 IsolatedMountPointProvider(); 31 explicit IsolatedMountPointProvider(
32 base::SequencedTaskRunner* media_task_runner);
27 virtual ~IsolatedMountPointProvider(); 33 virtual ~IsolatedMountPointProvider();
28 34
29 // FileSystemMountPointProvider implementation. 35 // FileSystemMountPointProvider implementation.
30 virtual void ValidateFileSystemRoot( 36 virtual void ValidateFileSystemRoot(
31 const GURL& origin_url, 37 const GURL& origin_url,
32 FileSystemType type, 38 FileSystemType type,
33 bool create, 39 bool create,
34 const ValidateFileSystemCallback& callback) OVERRIDE; 40 const ValidateFileSystemCallback& callback) OVERRIDE;
35 virtual FilePath GetFileSystemRootPathOnFileThread( 41 virtual FilePath GetFileSystemRootPathOnFileThread(
36 const GURL& origin_url, 42 const GURL& origin_url,
(...skipping 16 matching lines...) Expand all
53 FileSystemContext* context) const OVERRIDE; 59 FileSystemContext* context) const OVERRIDE;
54 virtual FileStreamWriter* CreateFileStreamWriter( 60 virtual FileStreamWriter* CreateFileStreamWriter(
55 const FileSystemURL& url, 61 const FileSystemURL& url,
56 int64 offset, 62 int64 offset,
57 FileSystemContext* context) const OVERRIDE; 63 FileSystemContext* context) const OVERRIDE;
58 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 64 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
59 65
60 private: 66 private:
61 scoped_ptr<MediaPathFilter> media_path_filter_; 67 scoped_ptr<MediaPathFilter> media_path_filter_;
62 68
69 scoped_refptr<base::SequencedTaskRunner> media_task_runner_;
70
63 scoped_ptr<IsolatedFileUtil> isolated_file_util_; 71 scoped_ptr<IsolatedFileUtil> isolated_file_util_;
64 scoped_ptr<DraggedFileUtil> dragged_file_util_; 72 scoped_ptr<DraggedFileUtil> dragged_file_util_;
65 scoped_ptr<NativeMediaFileUtil> native_media_file_util_; 73 scoped_ptr<NativeMediaFileUtil> native_media_file_util_;
66 }; 74 };
67 75
68 } // namespace fileapi 76 } // namespace fileapi
69 77
70 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 78 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698