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

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 478853003: [Sync] Have bookmarks use a slower nudge delay to better handle automated writes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 ModelTypeSet encrypted_types, 124 ModelTypeSet encrypted_types,
125 bool encrypt_everything) OVERRIDE; 125 bool encrypt_everything) OVERRIDE;
126 virtual void OnEncryptionComplete() OVERRIDE; 126 virtual void OnEncryptionComplete() OVERRIDE;
127 virtual void OnCryptographerStateChanged( 127 virtual void OnCryptographerStateChanged(
128 Cryptographer* cryptographer) OVERRIDE; 128 Cryptographer* cryptographer) OVERRIDE;
129 virtual void OnPassphraseTypeChanged( 129 virtual void OnPassphraseTypeChanged(
130 PassphraseType type, 130 PassphraseType type,
131 base::Time explicit_passphrase_time) OVERRIDE; 131 base::Time explicit_passphrase_time) OVERRIDE;
132 132
133 static int GetDefaultNudgeDelay(); 133 static int GetDefaultNudgeDelay();
134 static int GetPreferencesNudgeDelay(); 134 static int GetSlowNudgeDelay();
135 135
136 // SyncEngineEventListener implementation. 136 // SyncEngineEventListener implementation.
137 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; 137 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE;
138 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; 138 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE;
139 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; 139 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE;
140 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; 140 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE;
141 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; 141 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE;
142 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; 142 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE;
143 143
144 // ServerConnectionEventListener implementation. 144 // ServerConnectionEventListener implementation.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
349 349
350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
351 351
352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
353 }; 353 };
354 354
355 } // namespace syncer 355 } // namespace syncer
356 356
357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698