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 CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <set> | 11 #include <set> |
10 #include <string> | 12 #include <string> |
11 #include <vector> | 13 #include <vector> |
12 | 14 |
13 #include "base/basictypes.h" | 15 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/sync_file_system/conflict_resolution_policy.h" | 17 #include "chrome/browser/sync_file_system/conflict_resolution_policy.h" |
16 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 18 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
17 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 19 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
18 #include "storage/browser/fileapi/file_system_url.h" | 20 #include "storage/browser/fileapi/file_system_url.h" |
19 | 21 |
20 class BrowserContextKeyedServiceFactory; | 22 class BrowserContextKeyedServiceFactory; |
21 class GURL; | 23 class GURL; |
22 | 24 |
23 namespace base { | 25 namespace base { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 class Observer { | 87 class Observer { |
86 public: | 88 public: |
87 Observer() {} | 89 Observer() {} |
88 virtual ~Observer() {} | 90 virtual ~Observer() {} |
89 | 91 |
90 // This is called when RemoteFileSyncService updates its internal queue | 92 // This is called when RemoteFileSyncService updates its internal queue |
91 // of pending remote changes. | 93 // of pending remote changes. |
92 // |pending_changes_hint| indicates the pending queue length to help sync | 94 // |pending_changes_hint| indicates the pending queue length to help sync |
93 // scheduling but the value may not be accurately reflect the real-time | 95 // scheduling but the value may not be accurately reflect the real-time |
94 // value. | 96 // value. |
95 virtual void OnRemoteChangeQueueUpdated(int64 pending_changes_hint) = 0; | 97 virtual void OnRemoteChangeQueueUpdated(int64_t pending_changes_hint) = 0; |
96 | 98 |
97 // This is called when RemoteFileSyncService updates its state. | 99 // This is called when RemoteFileSyncService updates its state. |
98 virtual void OnRemoteServiceStateUpdated( | 100 virtual void OnRemoteServiceStateUpdated( |
99 RemoteServiceState state, | 101 RemoteServiceState state, |
100 const std::string& description) {} | 102 const std::string& description) {} |
101 | 103 |
102 private: | 104 private: |
103 DISALLOW_COPY_AND_ASSIGN(Observer); | 105 DISALLOW_COPY_AND_ASSIGN(Observer); |
104 }; | 106 }; |
105 | 107 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 215 |
214 virtual void PromoteDemotedChanges(const base::Closure& callback) = 0; | 216 virtual void PromoteDemotedChanges(const base::Closure& callback) = 0; |
215 | 217 |
216 private: | 218 private: |
217 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); | 219 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); |
218 }; | 220 }; |
219 | 221 |
220 } // namespace sync_file_system | 222 } // namespace sync_file_system |
221 | 223 |
222 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 224 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |