OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // A class to schedule syncer tasks intelligently. | 5 // A class to schedule syncer tasks intelligently. |
6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_ | 6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_ |
7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ | 7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "sync/base/sync_export.h" | 14 #include "sync/base/sync_export.h" |
15 #include "sync/engine/nudge_source.h" | 15 #include "sync/engine/nudge_source.h" |
16 #include "sync/internal_api/public/base/model_type_invalidation_map.h" | 16 #include "sync/internal_api/public/base/model_type_invalidation_map.h" |
17 #include "sync/sessions/sync_session.h" | 17 #include "sync/sessions/sync_session.h" |
18 | 18 |
19 class MessageLoop; | |
20 | |
21 namespace tracked_objects { | 19 namespace tracked_objects { |
22 class Location; | 20 class Location; |
23 } // namespace tracked_objects | 21 } // namespace tracked_objects |
24 | 22 |
25 namespace syncer { | 23 namespace syncer { |
26 | 24 |
27 struct ServerConnectionEvent; | 25 struct ServerConnectionEvent; |
28 | 26 |
29 struct SYNC_EXPORT_PRIVATE ConfigurationParams { | 27 struct SYNC_EXPORT_PRIVATE ConfigurationParams { |
30 ConfigurationParams(); | 28 ConfigurationParams(); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Called when credentials are updated by the user. | 108 // Called when credentials are updated by the user. |
111 virtual void OnCredentialsUpdated() = 0; | 109 virtual void OnCredentialsUpdated() = 0; |
112 | 110 |
113 // Called when the network layer detects a connection status change. | 111 // Called when the network layer detects a connection status change. |
114 virtual void OnConnectionStatusChange() = 0; | 112 virtual void OnConnectionStatusChange() = 0; |
115 }; | 113 }; |
116 | 114 |
117 } // namespace syncer | 115 } // namespace syncer |
118 | 116 |
119 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ | 117 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ |
OLD | NEW |