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

Side by Side Diff: sync/engine/sync_scheduler_impl.h

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 5 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 6 #define SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // |name| is a display string to identify the syncer thread. Takes 44 // |name| is a display string to identify the syncer thread. Takes
45 // |ownership of |syncer| and |delay_provider|. 45 // |ownership of |syncer| and |delay_provider|.
46 SyncSchedulerImpl(const std::string& name, 46 SyncSchedulerImpl(const std::string& name,
47 BackoffDelayProvider* delay_provider, 47 BackoffDelayProvider* delay_provider,
48 sessions::SyncSessionContext* context, 48 sessions::SyncSessionContext* context,
49 Syncer* syncer); 49 Syncer* syncer);
50 50
51 // Calls Stop(). 51 // Calls Stop().
52 virtual ~SyncSchedulerImpl(); 52 virtual ~SyncSchedulerImpl();
53 53
54 virtual void Start(Mode mode) OVERRIDE; 54 virtual void Start(Mode mode) override;
55 virtual void ScheduleConfiguration( 55 virtual void ScheduleConfiguration(
56 const ConfigurationParams& params) OVERRIDE; 56 const ConfigurationParams& params) override;
57 virtual void Stop() OVERRIDE; 57 virtual void Stop() override;
58 virtual void ScheduleLocalNudge( 58 virtual void ScheduleLocalNudge(
59 ModelTypeSet types, 59 ModelTypeSet types,
60 const tracked_objects::Location& nudge_location) OVERRIDE; 60 const tracked_objects::Location& nudge_location) override;
61 virtual void ScheduleLocalRefreshRequest( 61 virtual void ScheduleLocalRefreshRequest(
62 ModelTypeSet types, 62 ModelTypeSet types,
63 const tracked_objects::Location& nudge_location) OVERRIDE; 63 const tracked_objects::Location& nudge_location) override;
64 virtual void ScheduleInvalidationNudge( 64 virtual void ScheduleInvalidationNudge(
65 syncer::ModelType type, 65 syncer::ModelType type,
66 scoped_ptr<InvalidationInterface> invalidation, 66 scoped_ptr<InvalidationInterface> invalidation,
67 const tracked_objects::Location& nudge_location) OVERRIDE; 67 const tracked_objects::Location& nudge_location) override;
68 virtual void ScheduleInitialSyncNudge(syncer::ModelType model_type) OVERRIDE; 68 virtual void ScheduleInitialSyncNudge(syncer::ModelType model_type) override;
69 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; 69 virtual void SetNotificationsEnabled(bool notifications_enabled) override;
70 70
71 virtual void OnCredentialsUpdated() OVERRIDE; 71 virtual void OnCredentialsUpdated() override;
72 virtual void OnConnectionStatusChange() OVERRIDE; 72 virtual void OnConnectionStatusChange() override;
73 73
74 // SyncSession::Delegate implementation. 74 // SyncSession::Delegate implementation.
75 virtual void OnThrottled(const base::TimeDelta& throttle_duration) OVERRIDE; 75 virtual void OnThrottled(const base::TimeDelta& throttle_duration) override;
76 virtual void OnTypesThrottled( 76 virtual void OnTypesThrottled(
77 ModelTypeSet types, 77 ModelTypeSet types,
78 const base::TimeDelta& throttle_duration) OVERRIDE; 78 const base::TimeDelta& throttle_duration) override;
79 virtual bool IsCurrentlyThrottled() OVERRIDE; 79 virtual bool IsCurrentlyThrottled() override;
80 virtual void OnReceivedShortPollIntervalUpdate( 80 virtual void OnReceivedShortPollIntervalUpdate(
81 const base::TimeDelta& new_interval) OVERRIDE; 81 const base::TimeDelta& new_interval) override;
82 virtual void OnReceivedLongPollIntervalUpdate( 82 virtual void OnReceivedLongPollIntervalUpdate(
83 const base::TimeDelta& new_interval) OVERRIDE; 83 const base::TimeDelta& new_interval) override;
84 virtual void OnReceivedCustomNudgeDelays( 84 virtual void OnReceivedCustomNudgeDelays(
85 const std::map<ModelType, base::TimeDelta>& nudge_delays) OVERRIDE; 85 const std::map<ModelType, base::TimeDelta>& nudge_delays) override;
86 virtual void OnReceivedClientInvalidationHintBufferSize(int size) OVERRIDE; 86 virtual void OnReceivedClientInvalidationHintBufferSize(int size) override;
87 virtual void OnSyncProtocolError( 87 virtual void OnSyncProtocolError(
88 const SyncProtocolError& sync_protocol_error) OVERRIDE; 88 const SyncProtocolError& sync_protocol_error) override;
89 virtual void OnReceivedGuRetryDelay(const base::TimeDelta& delay) OVERRIDE; 89 virtual void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override;
90 virtual void OnReceivedMigrationRequest(syncer::ModelTypeSet types) OVERRIDE; 90 virtual void OnReceivedMigrationRequest(syncer::ModelTypeSet types) override;
91 91
92 // Returns true if the client is currently in exponential backoff. 92 // Returns true if the client is currently in exponential backoff.
93 bool IsBackingOff() const; 93 bool IsBackingOff() const;
94 94
95 private: 95 private:
96 enum JobPriority { 96 enum JobPriority {
97 // Non-canary jobs respect exponential backoff. 97 // Non-canary jobs respect exponential backoff.
98 NORMAL_PRIORITY, 98 NORMAL_PRIORITY,
99 // Canary jobs bypass exponential backoff, so use with extreme caution. 99 // Canary jobs bypass exponential backoff, so use with extreme caution.
100 CANARY_PRIORITY 100 CANARY_PRIORITY
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // A second factory specially for weak_handle_this_, to allow the handle 323 // A second factory specially for weak_handle_this_, to allow the handle
324 // to be const and alleviate threading concerns. 324 // to be const and alleviate threading concerns.
325 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 325 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
326 326
327 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 327 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
328 }; 328 };
329 329
330 } // namespace syncer 330 } // namespace syncer
331 331
332 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_ 332 #endif // SYNC_ENGINE_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « sync/engine/non_blocking_type_commit_contribution.h ('k') | sync/engine/syncer_proto_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698