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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
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/time.h" | 13 #include "base/time/time.h" |
14 #include "components/sync/base/invalidation_interface.h" | 14 #include "components/sync/base/invalidation_interface.h" |
15 #include "components/sync/engine_impl/cycle/sync_cycle.h" | 15 #include "components/sync/engine_impl/cycle/sync_cycle.h" |
16 #include "components/sync/engine_impl/nudge_source.h" | 16 #include "components/sync/engine_impl/nudge_source.h" |
17 | 17 |
18 namespace tracked_objects { | 18 namespace tracked_objects { |
19 class Location; | 19 class Location; |
20 } // namespace tracked_objects | 20 } // namespace tracked_objects |
21 | 21 |
22 namespace syncer { | 22 namespace syncer { |
23 | 23 |
24 struct ServerConnectionEvent; | |
25 | |
26 struct ConfigurationParams { | 24 struct ConfigurationParams { |
27 ConfigurationParams(); | 25 ConfigurationParams(); |
28 ConfigurationParams( | 26 ConfigurationParams( |
29 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& source, | 27 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& source, |
30 ModelTypeSet types_to_download, | 28 ModelTypeSet types_to_download, |
31 const ModelSafeRoutingInfo& routing_info, | 29 const ModelSafeRoutingInfo& routing_info, |
32 const base::Closure& ready_task, | 30 const base::Closure& ready_task, |
33 const base::Closure& retry_task); | 31 const base::Closure& retry_task); |
34 ConfigurationParams(const ConfigurationParams& other); | 32 ConfigurationParams(const ConfigurationParams& other); |
35 ~ConfigurationParams(); | 33 ~ConfigurationParams(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Called when credentials are updated by the user. | 147 // Called when credentials are updated by the user. |
150 virtual void OnCredentialsUpdated() = 0; | 148 virtual void OnCredentialsUpdated() = 0; |
151 | 149 |
152 // Called when the network layer detects a connection status change. | 150 // Called when the network layer detects a connection status change. |
153 virtual void OnConnectionStatusChange() = 0; | 151 virtual void OnConnectionStatusChange() = 0; |
154 }; | 152 }; |
155 | 153 |
156 } // namespace syncer | 154 } // namespace syncer |
157 | 155 |
158 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ | 156 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_H_ |
OLD | NEW |