Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Side by Side Diff: components/sync/engine_impl/sync_scheduler_impl.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void ScheduleConfiguration(const ConfigurationParams& params) override; 50 void ScheduleConfiguration(const ConfigurationParams& params) override;
51 void ScheduleClearServerData(const ClearParams& params) override; 51 void ScheduleClearServerData(const ClearParams& params) override;
52 void Stop() override; 52 void Stop() override;
53 void ScheduleLocalNudge( 53 void ScheduleLocalNudge(
54 ModelTypeSet types, 54 ModelTypeSet types,
55 const tracked_objects::Location& nudge_location) override; 55 const tracked_objects::Location& nudge_location) override;
56 void ScheduleLocalRefreshRequest( 56 void ScheduleLocalRefreshRequest(
57 ModelTypeSet types, 57 ModelTypeSet types,
58 const tracked_objects::Location& nudge_location) override; 58 const tracked_objects::Location& nudge_location) override;
59 void ScheduleInvalidationNudge( 59 void ScheduleInvalidationNudge(
60 ModelType type, 60 syncer::ModelType type,
61 std::unique_ptr<InvalidationInterface> invalidation, 61 std::unique_ptr<InvalidationInterface> invalidation,
62 const tracked_objects::Location& nudge_location) override; 62 const tracked_objects::Location& nudge_location) override;
63 void ScheduleInitialSyncNudge(ModelType model_type) override; 63 void ScheduleInitialSyncNudge(syncer::ModelType model_type) override;
64 void SetNotificationsEnabled(bool notifications_enabled) override; 64 void SetNotificationsEnabled(bool notifications_enabled) override;
65 65
66 void OnCredentialsUpdated() override; 66 void OnCredentialsUpdated() override;
67 void OnConnectionStatusChange() override; 67 void OnConnectionStatusChange() override;
68 68
69 // SyncCycle::Delegate implementation. 69 // SyncCycle::Delegate implementation.
70 void OnThrottled(const base::TimeDelta& throttle_duration) override; 70 void OnThrottled(const base::TimeDelta& throttle_duration) override;
71 void OnTypesThrottled(ModelTypeSet types, 71 void OnTypesThrottled(ModelTypeSet types,
72 const base::TimeDelta& throttle_duration) override; 72 const base::TimeDelta& throttle_duration) override;
73 bool IsCurrentlyThrottled() override; 73 bool IsCurrentlyThrottled() override;
74 void OnReceivedShortPollIntervalUpdate( 74 void OnReceivedShortPollIntervalUpdate(
75 const base::TimeDelta& new_interval) override; 75 const base::TimeDelta& new_interval) override;
76 void OnReceivedLongPollIntervalUpdate( 76 void OnReceivedLongPollIntervalUpdate(
77 const base::TimeDelta& new_interval) override; 77 const base::TimeDelta& new_interval) override;
78 void OnReceivedCustomNudgeDelays( 78 void OnReceivedCustomNudgeDelays(
79 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; 79 const std::map<ModelType, base::TimeDelta>& nudge_delays) override;
80 void OnReceivedClientInvalidationHintBufferSize(int size) override; 80 void OnReceivedClientInvalidationHintBufferSize(int size) override;
81 void OnSyncProtocolError( 81 void OnSyncProtocolError(
82 const SyncProtocolError& sync_protocol_error) override; 82 const SyncProtocolError& sync_protocol_error) override;
83 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; 83 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override;
84 void OnReceivedMigrationRequest(ModelTypeSet types) override; 84 void OnReceivedMigrationRequest(syncer::ModelTypeSet types) override;
85 85
86 // Returns true if the client is currently in exponential backoff. 86 // Returns true if the client is currently in exponential backoff.
87 bool IsBackingOff() const; 87 bool IsBackingOff() const;
88 88
89 private: 89 private:
90 enum JobPriority { 90 enum JobPriority {
91 // Non-canary jobs respect exponential backoff. 91 // Non-canary jobs respect exponential backoff.
92 NORMAL_PRIORITY, 92 NORMAL_PRIORITY,
93 // Canary jobs bypass exponential backoff, so use with extreme caution. 93 // Canary jobs bypass exponential backoff, so use with extreme caution.
94 CANARY_PRIORITY 94 CANARY_PRIORITY
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // A second factory specially for weak_handle_this_, to allow the handle 315 // A second factory specially for weak_handle_this_, to allow the handle
316 // to be const and alleviate threading concerns. 316 // to be const and alleviate threading concerns.
317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
320 }; 320 };
321 321
322 } // namespace syncer 322 } // namespace syncer
323 323
324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ 324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_scheduler.h ('k') | components/sync/engine_impl/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698