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

Unified Diff: sync/internal_api/public/sync_manager.h

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/sync_manager.h
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index 8c196a11f3208bab8f684f0e83b0fb169b7d5fde..75e55aa540ce32494521b617f3c1b6c24e0141a3 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -122,7 +122,7 @@ class SyncManager {
// operations, a delete may temporarily orphan a node that is
// updated later in the list.
virtual void OnChangesApplied(
- syncable::ModelType model_type,
+ syncer::ModelType model_type,
const BaseTransaction* trans,
const ImmutableChangeRecordList& changes) = 0;
@@ -137,7 +137,7 @@ class SyncManager {
// those changes, let the transaction fall out of scope, and then commit
// those changes from within OnChangesComplete (postponing the blocking
// I/O to when it no longer holds any lock).
- virtual void OnChangesComplete(syncable::ModelType model_type) = 0;
+ virtual void OnChangesComplete(syncer::ModelType model_type) = 0;
protected:
virtual ~ChangeDelegate();
@@ -165,11 +165,11 @@ class SyncManager {
// be able to apply changes without being under a transaction.
// But that's a ways off...
virtual void OnChangesApplied(
- syncable::ModelType model_type,
+ syncer::ModelType model_type,
int64 write_transaction_id,
const ImmutableChangeRecordList& changes) = 0;
- virtual void OnChangesComplete(syncable::ModelType model_type) = 0;
+ virtual void OnChangesComplete(syncer::ModelType model_type) = 0;
protected:
virtual ~ChangeObserver();
@@ -324,7 +324,7 @@ class SyncManager {
//
// Called from within a transaction.
virtual void OnEncryptedTypesChanged(
- syncable::ModelTypeSet encrypted_types,
+ syncer::ModelTypeSet encrypted_types,
bool encrypt_everything) = 0;
// Called after we finish encrypting the current set of encrypted
@@ -399,13 +399,13 @@ class SyncManager {
void ThrowUnrecoverableError();
// Returns the set of types for which we have stored some sync data.
- syncable::ModelTypeSet InitialSyncEndedTypes();
+ syncer::ModelTypeSet InitialSyncEndedTypes();
// Update tokens that we're using in Sync. Email must stay the same.
void UpdateCredentials(const SyncCredentials& credentials);
// Called when the user disables or enables a sync type.
- void UpdateEnabledTypes(const syncable::ModelTypeSet& enabled_types);
+ void UpdateEnabledTypes(const syncer::ModelTypeSet& enabled_types);
// Put the syncer in normal mode ready to perform nudges and polls.
void StartSyncingNormally(
@@ -437,7 +437,7 @@ class SyncManager {
// Switches the mode of operation to CONFIGURATION_MODE and
// schedules a config task to fetch updates for |types|.
void RequestConfig(const syncer::ModelSafeRoutingInfo& routing_info,
- const syncable::ModelTypeSet& types,
+ const syncer::ModelTypeSet& types,
syncer::ConfigureReason reason);
void RequestCleanupDisabledTypes(
@@ -511,7 +511,7 @@ class SyncManager {
// Gets the set of encrypted types from the cryptographer
// Note: opens a transaction. May be called from any thread.
- syncable::ModelTypeSet GetEncryptedDataTypesForTest() const;
+ syncer::ModelTypeSet GetEncryptedDataTypesForTest() const;
// Reads the nigori node to determine if any experimental features should
// be enabled.
@@ -529,7 +529,7 @@ class SyncManager {
void SimulateDisableNotificationsForTest(int reason);
void TriggerOnIncomingNotificationForTest(
- syncable::ModelTypeSet model_types);
+ syncer::ModelTypeSet model_types);
static const int kDefaultNudgeDelayMilliseconds;
static const int kPreferencesNudgeDelayMilliseconds;
@@ -541,7 +541,7 @@ class SyncManager {
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);
// For unit tests.
- base::TimeDelta GetNudgeDelayTimeDelta(const syncable::ModelType& model_type);
+ base::TimeDelta GetNudgeDelayTimeDelta(const syncer::ModelType& model_type);
base::ThreadChecker thread_checker_;
@@ -551,10 +551,10 @@ class SyncManager {
DISALLOW_COPY_AND_ASSIGN(SyncManager);
};
-bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share);
+bool InitialSyncEndedForTypes(syncer::ModelTypeSet types, UserShare* share);
-syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
- syncable::ModelTypeSet types,
+syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
+ syncer::ModelTypeSet types,
syncer::UserShare* share);
const char* ConnectionStatusToString(ConnectionStatus status);
« no previous file with comments | « sync/internal_api/public/sessions/sync_source_info.cc ('k') | sync/internal_api/public/test/test_entry_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698