OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "chrome/browser/sync_file_system/file_change.h" | 18 #include "chrome/browser/sync_file_system/file_change.h" |
19 #include "chrome/browser/sync_file_system/sync_status_code.h" | 19 #include "chrome/browser/sync_file_system/sync_status_code.h" |
20 #include "webkit/browser/fileapi/file_observers.h" | 20 #include "webkit/browser/fileapi/file_change_observer.h" |
21 #include "webkit/browser/fileapi/file_system_url.h" | 21 #include "webkit/browser/fileapi/file_system_url.h" |
| 22 #include "webkit/browser/fileapi/file_update_observer.h" |
22 | 23 |
23 namespace base { | 24 namespace base { |
24 class SequencedTaskRunner; | 25 class SequencedTaskRunner; |
25 } | 26 } |
26 | 27 |
27 namespace fileapi { | 28 namespace fileapi { |
28 class FileSystemContext; | 29 class FileSystemContext; |
29 class FileSystemURL; | 30 class FileSystemURL; |
30 } | 31 } |
31 | 32 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // This can be accessed on any threads (with num_changes_lock_). | 162 // This can be accessed on any threads (with num_changes_lock_). |
162 int64 num_changes_; | 163 int64 num_changes_; |
163 mutable base::Lock num_changes_lock_; | 164 mutable base::Lock num_changes_lock_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker); | 166 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace sync_file_system | 169 } // namespace sync_file_system |
169 | 170 |
170 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ | 171 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ |
OLD | NEW |