| OLD | NEW |
| 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_TASK_RUNNERS_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TASK_RUNNERS_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TASK_RUNNERS_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TASK_RUNNERS_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "webkit/fileapi/fileapi_export.h" | 10 #include "webkit/storage/webkit_storage_export.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class SequencedTaskRunner; | 13 class SequencedTaskRunner; |
| 14 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
| 15 } // namespace | 15 } // namespace |
| 16 | 16 |
| 17 namespace fileapi { | 17 namespace fileapi { |
| 18 | 18 |
| 19 // This class holds task runners used for filesystem related stuff. | 19 // This class holds task runners used for filesystem related stuff. |
| 20 class FILEAPI_EXPORT FileSystemTaskRunners { | 20 class WEBKIT_STORAGE_EXPORT FileSystemTaskRunners { |
| 21 public: | 21 public: |
| 22 FileSystemTaskRunners( | 22 FileSystemTaskRunners( |
| 23 base::SingleThreadTaskRunner* io_task_runner, | 23 base::SingleThreadTaskRunner* io_task_runner, |
| 24 base::SingleThreadTaskRunner* file_task_runner, | 24 base::SingleThreadTaskRunner* file_task_runner, |
| 25 base::SequencedTaskRunner* media_task_runner); | 25 base::SequencedTaskRunner* media_task_runner); |
| 26 | 26 |
| 27 ~FileSystemTaskRunners(); | 27 ~FileSystemTaskRunners(); |
| 28 | 28 |
| 29 static scoped_ptr<FileSystemTaskRunners> CreateMockTaskRunners(); | 29 static scoped_ptr<FileSystemTaskRunners> CreateMockTaskRunners(); |
| 30 | 30 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 44 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
| 45 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 45 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
| 46 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; | 46 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(FileSystemTaskRunners); | 48 DISALLOW_COPY_AND_ASSIGN(FileSystemTaskRunners); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace fileapi | 51 } // namespace fileapi |
| 52 | 52 |
| 53 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TASK_RUNNERS_H_ | 53 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TASK_RUNNERS_H_ |
| OLD | NEW |