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_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ |
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
16 #include "webkit/browser/fileapi/file_system_url.h" | 16 #include "webkit/browser/fileapi/file_system_url.h" |
17 #include "webkit/fileapi/syncable/local_file_sync_status.h" | 17 #include "webkit/browser/fileapi/syncable/local_file_sync_status.h" |
18 #include "webkit/storage/webkit_storage_export.h" | 18 #include "webkit/storage/webkit_storage_export.h" |
19 | 19 |
20 namespace fileapi { | 20 namespace fileapi { |
21 class FileSystemURL; | 21 class FileSystemURL; |
22 } | 22 } |
23 | 23 |
24 namespace sync_file_system { | 24 namespace sync_file_system { |
25 | 25 |
26 // This class must run only on IO thread. | 26 // This class must run only on IO thread. |
27 // Owned by LocalFileSyncContext. | 27 // Owned by LocalFileSyncContext. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::list<Task*> pending_tasks_; | 95 std::list<Task*> pending_tasks_; |
96 | 96 |
97 const int64 max_inflight_tasks_; | 97 const int64 max_inflight_tasks_; |
98 int64 num_inflight_tasks_; | 98 int64 num_inflight_tasks_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(SyncableFileOperationRunner); | 100 DISALLOW_COPY_AND_ASSIGN(SyncableFileOperationRunner); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace sync_file_system | 103 } // namespace sync_file_system |
104 | 104 |
105 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ | 105 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_OPERATION_RUNNER_H_ |
OLD | NEW |