summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/base_transaction.h2
-rw-r--r--sync/internal_api/public/change_record.h2
-rw-r--r--sync/internal_api/public/change_record_unittest.cc2
-rw-r--r--sync/internal_api/public/engine/model_safe_worker.cc4
-rw-r--r--sync/internal_api/public/engine/model_safe_worker.h4
-rw-r--r--sync/internal_api/public/engine/model_safe_worker_unittest.cc4
-rw-r--r--sync/internal_api/public/engine/passive_model_worker.cc4
-rw-r--r--sync/internal_api/public/engine/passive_model_worker.h4
-rw-r--r--sync/internal_api/public/engine/polling_constants.cc4
-rw-r--r--sync/internal_api/public/engine/polling_constants.h4
-rw-r--r--sync/internal_api/public/engine/sync_status.h2
-rw-r--r--sync/internal_api/public/sessions/error_counters.cc4
-rw-r--r--sync/internal_api/public/sessions/error_counters.h4
-rw-r--r--sync/internal_api/public/sessions/sync_session_snapshot.cc4
-rw-r--r--sync/internal_api/public/sessions/sync_session_snapshot.h4
-rw-r--r--sync/internal_api/public/sessions/sync_source_info.cc4
-rw-r--r--sync/internal_api/public/sessions/sync_source_info.h4
-rw-r--r--sync/internal_api/public/sessions/syncer_status.cc4
-rw-r--r--sync/internal_api/public/sessions/syncer_status.h4
-rw-r--r--sync/internal_api/public/sync_manager.h34
-rw-r--r--sync/internal_api/public/syncable/model_type.h4
-rw-r--r--sync/internal_api/public/syncable/model_type_payload_map.cc6
-rw-r--r--sync/internal_api/public/syncable/model_type_payload_map.h4
-rw-r--r--sync/internal_api/public/test/test_user_share.h4
-rw-r--r--sync/internal_api/public/util/enum_set.h4
-rw-r--r--sync/internal_api/public/util/enum_set_unittest.cc4
-rw-r--r--sync/internal_api/public/util/experiments.h2
-rw-r--r--sync/internal_api/public/util/immutable.h6
-rw-r--r--sync/internal_api/public/util/immutable_unittest.cc12
-rw-r--r--sync/internal_api/public/util/report_unrecoverable_error_function.h4
-rw-r--r--sync/internal_api/public/util/syncer_error.cc4
-rw-r--r--sync/internal_api/public/util/syncer_error.h4
-rw-r--r--sync/internal_api/public/util/unrecoverable_error_handler.h2
-rw-r--r--sync/internal_api/public/util/unrecoverable_error_info.cc4
-rw-r--r--sync/internal_api/public/util/unrecoverable_error_info.h4
-rw-r--r--sync/internal_api/public/util/weak_handle.cc2
-rw-r--r--sync/internal_api/public/util/weak_handle.h6
-rw-r--r--sync/internal_api/public/util/weak_handle_unittest.cc4
-rw-r--r--sync/internal_api/public/write_node.h5
39 files changed, 94 insertions, 93 deletions
diff --git a/sync/internal_api/public/base_transaction.h b/sync/internal_api/public/base_transaction.h
index e2ed24a..15efdb79 100644
--- a/sync/internal_api/public/base_transaction.h
+++ b/sync/internal_api/public/base_transaction.h
@@ -28,7 +28,7 @@ class BaseTransaction {
public:
// Provide access to the underlying syncable objects from BaseNode.
virtual syncable::BaseTransaction* GetWrappedTrans() const = 0;
- browser_sync::Cryptographer* GetCryptographer() const;
+ csync::Cryptographer* GetCryptographer() const;
syncable::Directory* GetDirectory() const {
return directory_;
diff --git a/sync/internal_api/public/change_record.h b/sync/internal_api/public/change_record.h
index f522a3b..6faccd5 100644
--- a/sync/internal_api/public/change_record.h
+++ b/sync/internal_api/public/change_record.h
@@ -60,7 +60,7 @@ struct ChangeRecord {
typedef std::vector<ChangeRecord> ChangeRecordList;
-typedef browser_sync::Immutable<ChangeRecordList> ImmutableChangeRecordList;
+typedef csync::Immutable<ChangeRecordList> ImmutableChangeRecordList;
} // namespace sync_api
diff --git a/sync/internal_api/public/change_record_unittest.cc b/sync/internal_api/public/change_record_unittest.cc
index 4fb1f01..a2c97b6 100644
--- a/sync/internal_api/public/change_record_unittest.cc
+++ b/sync/internal_api/public/change_record_unittest.cc
@@ -61,7 +61,7 @@ void CheckChangeRecordValue(
EXPECT_TRUE(Value::Equals(extra_value, expected_extra_value.get()));
scoped_ptr<DictionaryValue> expected_specifics_value(
- browser_sync::EntitySpecificsToValue(record.specifics));
+ csync::EntitySpecificsToValue(record.specifics));
ExpectDictDictionaryValue(*expected_specifics_value,
value, "specifics");
}
diff --git a/sync/internal_api/public/engine/model_safe_worker.cc b/sync/internal_api/public/engine/model_safe_worker.cc
index 2718acc..f82b451 100644
--- a/sync/internal_api/public/engine/model_safe_worker.cc
+++ b/sync/internal_api/public/engine/model_safe_worker.cc
@@ -8,7 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-namespace browser_sync {
+namespace csync {
base::DictionaryValue* ModelSafeRoutingInfoToValue(
const ModelSafeRoutingInfo& routing_info) {
@@ -72,4 +72,4 @@ std::string ModelSafeGroupToString(ModelSafeGroup group) {
ModelSafeWorker::~ModelSafeWorker() {}
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/engine/model_safe_worker.h b/sync/internal_api/public/engine/model_safe_worker.h
index 1a6c371..e1d6563 100644
--- a/sync/internal_api/public/engine/model_safe_worker.h
+++ b/sync/internal_api/public/engine/model_safe_worker.h
@@ -19,7 +19,7 @@ namespace base {
class DictionaryValue;
} // namespace
-namespace browser_sync {
+namespace csync {
typedef base::Callback<enum SyncerError(void)> WorkCallback;
@@ -82,6 +82,6 @@ syncable::ModelTypeSet GetRoutingInfoTypes(
ModelSafeGroup GetGroupForModelType(const syncable::ModelType type,
const ModelSafeRoutingInfo& routes);
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_
diff --git a/sync/internal_api/public/engine/model_safe_worker_unittest.cc b/sync/internal_api/public/engine/model_safe_worker_unittest.cc
index 5304c13..a8580e1 100644
--- a/sync/internal_api/public/engine/model_safe_worker_unittest.cc
+++ b/sync/internal_api/public/engine/model_safe_worker_unittest.cc
@@ -8,7 +8,7 @@
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace browser_sync {
+namespace csync {
namespace {
class ModelSafeWorkerTest : public ::testing::Test {
@@ -52,4 +52,4 @@ TEST_F(ModelSafeWorkerTest, GetRoutingInfoTypes) {
}
} // namespace
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/engine/passive_model_worker.cc b/sync/internal_api/public/engine/passive_model_worker.cc
index 26fccc1..f33488e 100644
--- a/sync/internal_api/public/engine/passive_model_worker.cc
+++ b/sync/internal_api/public/engine/passive_model_worker.cc
@@ -6,7 +6,7 @@
#include "base/message_loop.h"
-namespace browser_sync {
+namespace csync {
PassiveModelWorker::PassiveModelWorker(const MessageLoop* sync_loop)
: sync_loop_(sync_loop) {}
@@ -25,4 +25,4 @@ ModelSafeGroup PassiveModelWorker::GetModelSafeGroup() {
return GROUP_PASSIVE;
}
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/engine/passive_model_worker.h b/sync/internal_api/public/engine/passive_model_worker.h
index 7c0ddf3..bb0870a 100644
--- a/sync/internal_api/public/engine/passive_model_worker.h
+++ b/sync/internal_api/public/engine/passive_model_worker.h
@@ -13,7 +13,7 @@
class MessageLoop;
-namespace browser_sync {
+namespace csync {
// Implementation of ModelSafeWorker for passive types. All work is
// done on the same thread DoWorkAndWaitUntilDone (i.e., the sync
@@ -35,6 +35,6 @@ class PassiveModelWorker : public ModelSafeWorker {
DISALLOW_COPY_AND_ASSIGN(PassiveModelWorker);
};
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_PASSIVE_MODEL_WORKER_H_
diff --git a/sync/internal_api/public/engine/polling_constants.cc b/sync/internal_api/public/engine/polling_constants.cc
index d7fe753..bebf180 100644
--- a/sync/internal_api/public/engine/polling_constants.cc
+++ b/sync/internal_api/public/engine/polling_constants.cc
@@ -5,7 +5,7 @@
#include "base/basictypes.h"
#include "sync/internal_api/public/engine/polling_constants.h"
-namespace browser_sync {
+namespace csync {
// Server can overwrite these values via client commands.
// Standard short poll. This is used when XMPP is off.
@@ -22,5 +22,5 @@ const int64 kMaxBackoffSeconds = 60 * 60 * 4; // 4 hours.
// Backoff interval randomization factor.
const int kBackoffRandomizationFactor = 2;
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/engine/polling_constants.h b/sync/internal_api/public/engine/polling_constants.h
index 9adfe92..cb7f5f5 100644
--- a/sync/internal_api/public/engine/polling_constants.h
+++ b/sync/internal_api/public/engine/polling_constants.h
@@ -8,13 +8,13 @@
#define SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_
#pragma once
-namespace browser_sync {
+namespace csync {
extern const int64 kDefaultShortPollIntervalSeconds;
extern const int64 kDefaultLongPollIntervalSeconds;
extern const int64 kMaxBackoffSeconds;
extern const int kBackoffRandomizationFactor;
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_
diff --git a/sync/internal_api/public/engine/sync_status.h b/sync/internal_api/public/engine/sync_status.h
index f05a5bc..34b951e 100644
--- a/sync/internal_api/public/engine/sync_status.h
+++ b/sync/internal_api/public/engine/sync_status.h
@@ -29,7 +29,7 @@ struct SyncStatus {
// Notifications counters updated by the actions in synapi.
int notifications_received;
- browser_sync::SyncProtocolError sync_protocol_error;
+ csync::SyncProtocolError sync_protocol_error;
// Number of encryption conflicts counted during most recent sync cycle.
int encryption_conflicts;
diff --git a/sync/internal_api/public/sessions/error_counters.cc b/sync/internal_api/public/sessions/error_counters.cc
index 1982e2d..9ce6772 100644
--- a/sync/internal_api/public/sessions/error_counters.cc
+++ b/sync/internal_api/public/sessions/error_counters.cc
@@ -4,7 +4,7 @@
#include "sync/internal_api/public/sessions/error_counters.h"
-namespace browser_sync {
+namespace csync {
namespace sessions {
ErrorCounters::ErrorCounters()
@@ -13,4 +13,4 @@ ErrorCounters::ErrorCounters()
}
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/sessions/error_counters.h b/sync/internal_api/public/sessions/error_counters.h
index e513c84..a5baed7 100644
--- a/sync/internal_api/public/sessions/error_counters.h
+++ b/sync/internal_api/public/sessions/error_counters.h
@@ -10,7 +10,7 @@
#include "sync/internal_api/public/util/syncer_error.h"
#include "sync/protocol/sync_protocol_error.h"
-namespace browser_sync {
+namespace csync {
namespace sessions {
// Counters for various errors that can occur repeatedly during a sync session.
@@ -27,6 +27,6 @@ struct ErrorCounters {
};
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_ERROR_COUNTERS_H_
diff --git a/sync/internal_api/public/sessions/sync_session_snapshot.cc b/sync/internal_api/public/sessions/sync_session_snapshot.cc
index d058a4f..cf910dad 100644
--- a/sync/internal_api/public/sessions/sync_session_snapshot.cc
+++ b/sync/internal_api/public/sessions/sync_session_snapshot.cc
@@ -7,7 +7,7 @@
#include "base/json/json_writer.h"
#include "base/values.h"
-namespace browser_sync {
+namespace csync {
namespace sessions {
SyncSessionSnapshot::SyncSessionSnapshot()
@@ -170,4 +170,4 @@ bool SyncSessionSnapshot::retry_scheduled() const {
}
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/sessions/sync_session_snapshot.h b/sync/internal_api/public/sessions/sync_session_snapshot.h
index 45f6c75..8bd2258 100644
--- a/sync/internal_api/public/sessions/sync_session_snapshot.h
+++ b/sync/internal_api/public/sessions/sync_session_snapshot.h
@@ -20,7 +20,7 @@ namespace base {
class DictionaryValue;
}
-namespace browser_sync {
+namespace csync {
namespace sessions {
// An immutable snapshot of state from a SyncSession. Convenient to use as
@@ -95,6 +95,6 @@ class SyncSessionSnapshot {
};
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
diff --git a/sync/internal_api/public/sessions/sync_source_info.cc b/sync/internal_api/public/sessions/sync_source_info.cc
index 191199b..1b6d72d 100644
--- a/sync/internal_api/public/sessions/sync_source_info.cc
+++ b/sync/internal_api/public/sessions/sync_source_info.cc
@@ -7,7 +7,7 @@
#include "base/values.h"
#include "sync/protocol/proto_enum_conversions.h"
-namespace browser_sync {
+namespace csync {
namespace sessions {
SyncSourceInfo::SyncSourceInfo()
@@ -33,4 +33,4 @@ DictionaryValue* SyncSourceInfo::ToValue() const {
}
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/sessions/sync_source_info.h b/sync/internal_api/public/sessions/sync_source_info.h
index 838e094..cbd66d0 100644
--- a/sync/internal_api/public/sessions/sync_source_info.h
+++ b/sync/internal_api/public/sessions/sync_source_info.h
@@ -15,7 +15,7 @@ namespace base {
class DictionaryValue;
}
-namespace browser_sync {
+namespace csync {
namespace sessions {
// A container for the source of a sync session. This includes the update
@@ -37,6 +37,6 @@ struct SyncSourceInfo {
};
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SOURCE_INFO_H_
diff --git a/sync/internal_api/public/sessions/syncer_status.cc b/sync/internal_api/public/sessions/syncer_status.cc
index efa0c43..5b26a24 100644
--- a/sync/internal_api/public/sessions/syncer_status.cc
+++ b/sync/internal_api/public/sessions/syncer_status.cc
@@ -6,7 +6,7 @@
#include "base/values.h"
-namespace browser_sync {
+namespace csync {
namespace sessions {
SyncerStatus::SyncerStatus()
@@ -41,4 +41,4 @@ DictionaryValue* SyncerStatus::ToValue() const {
}
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/sessions/syncer_status.h b/sync/internal_api/public/sessions/syncer_status.h
index 7331ca3..070f564 100644
--- a/sync/internal_api/public/sessions/syncer_status.h
+++ b/sync/internal_api/public/sessions/syncer_status.h
@@ -13,7 +13,7 @@ namespace base {
class DictionaryValue;
}
-namespace browser_sync {
+namespace csync {
namespace sessions {
// Data pertaining to the status of an active Syncer object.
@@ -45,6 +45,6 @@ struct SyncerStatus {
};
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNCER_STATUS_H_
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index e79e071..ac7c1bd 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -25,7 +25,7 @@
#include "sync/internal_api/public/util/weak_handle.h"
#include "sync/protocol/sync_protocol_error.h"
-namespace browser_sync {
+namespace csync {
class Encryptor;
struct Experiments;
class ExtensionsActivityMonitor;
@@ -35,7 +35,7 @@ class JsEventHandler;
namespace sessions {
class SyncSessionSnapshot;
} // namespace sessions
-} // namespace browser_sync
+} // namespace csync
namespace csync {
class SyncNotifier;
@@ -58,7 +58,7 @@ enum ConnectionStatus {
CONNECTION_SERVER_ERROR
};
-// Reasons due to which browser_sync::Cryptographer might require a passphrase.
+// Reasons due to which csync::Cryptographer might require a passphrase.
enum PassphraseRequiredReason {
REASON_PASSPHRASE_NOT_REQUIRED = 0, // Initial value.
REASON_ENCRYPTION = 1, // The cryptographer requires a
@@ -184,7 +184,7 @@ class SyncManager {
// A round-trip sync-cycle took place and the syncer has resolved any
// conflicts that may have arisen.
virtual void OnSyncCycleCompleted(
- const browser_sync::sessions::SyncSessionSnapshot& snapshot) = 0;
+ const csync::sessions::SyncSessionSnapshot& snapshot) = 0;
// Called when the status of the connection to the sync server has
// changed.
@@ -300,7 +300,7 @@ class SyncManager {
// function getChildNodeIds(id);
virtual void OnInitializationComplete(
- const browser_sync::WeakHandle<browser_sync::JsBackend>&
+ const csync::WeakHandle<csync::JsBackend>&
js_backend, bool success) = 0;
// We are no longer permitted to communicate with the server. Sync should
@@ -334,7 +334,7 @@ class SyncManager {
virtual void OnEncryptionComplete() = 0;
virtual void OnActionableError(
- const browser_sync::SyncProtocolError& sync_protocol_error) = 0;
+ const csync::SyncProtocolError& sync_protocol_error) = 0;
protected:
virtual ~Observer();
@@ -369,16 +369,16 @@ class SyncManager {
// |sync_notifier| is owned and used to listen for notifications.
// |report_unrecoverable_error_function| may be NULL.
bool Init(const FilePath& database_location,
- const browser_sync::WeakHandle<browser_sync::JsEventHandler>&
+ const csync::WeakHandle<csync::JsEventHandler>&
event_handler,
const std::string& sync_server_and_path,
int sync_server_port,
bool use_ssl,
const scoped_refptr<base::TaskRunner>& blocking_task_runner,
HttpPostProviderFactory* post_factory,
- const browser_sync::ModelSafeRoutingInfo& model_safe_routing_info,
- const std::vector<browser_sync::ModelSafeWorker*>& workers,
- browser_sync::ExtensionsActivityMonitor*
+ const csync::ModelSafeRoutingInfo& model_safe_routing_info,
+ const std::vector<csync::ModelSafeWorker*>& workers,
+ csync::ExtensionsActivityMonitor*
extensions_activity_monitor,
ChangeDelegate* change_delegate,
const std::string& user_agent,
@@ -386,10 +386,10 @@ class SyncManager {
csync::SyncNotifier* sync_notifier,
const std::string& restored_key_for_bootstrapping,
TestingMode testing_mode,
- browser_sync::Encryptor* encryptor,
- browser_sync::UnrecoverableErrorHandler*
+ csync::Encryptor* encryptor,
+ csync::UnrecoverableErrorHandler*
unrecoverable_error_handler,
- browser_sync::ReportUnrecoverableErrorFunction
+ csync::ReportUnrecoverableErrorFunction
report_unrecoverable_error_function);
// Throw an unrecoverable error from a transaction (mostly used for
@@ -407,7 +407,7 @@ class SyncManager {
// Put the syncer in normal mode ready to perform nudges and polls.
void StartSyncingNormally(
- const browser_sync::ModelSafeRoutingInfo& routing_info);
+ const csync::ModelSafeRoutingInfo& routing_info);
// Attempts to re-encrypt encrypted data types using the passphrase provided.
// Notifies observers of the result of the operation via OnPassphraseAccepted
@@ -434,12 +434,12 @@ class SyncManager {
// Switches the mode of operation to CONFIGURATION_MODE and
// schedules a config task to fetch updates for |types|.
- void RequestConfig(const browser_sync::ModelSafeRoutingInfo& routing_info,
+ void RequestConfig(const csync::ModelSafeRoutingInfo& routing_info,
const syncable::ModelTypeSet& types,
sync_api::ConfigureReason reason);
void RequestCleanupDisabledTypes(
- const browser_sync::ModelSafeRoutingInfo& routing_info);
+ const csync::ModelSafeRoutingInfo& routing_info);
// Adds a listener to be notified of sync events.
// NOTE: It is OK (in fact, it's probably a good idea) to call this before
@@ -514,7 +514,7 @@ class SyncManager {
// Reads the nigori node to determine if any experimental features should
// be enabled.
// Note: opens a transaction. May be called on any thread.
- bool ReceivedExperiment(browser_sync::Experiments* experiments) const;
+ bool ReceivedExperiment(csync::Experiments* experiments) const;
// Uses a read-only transaction to determine if the directory being synced has
// any remaining unsynced items. May be called on any thread.
diff --git a/sync/internal_api/public/syncable/model_type.h b/sync/internal_api/public/syncable/model_type.h
index b7b5fe3..c8a9905 100644
--- a/sync/internal_api/public/syncable/model_type.h
+++ b/sync/internal_api/public/syncable/model_type.h
@@ -90,9 +90,9 @@ enum ModelType {
MODEL_TYPE_COUNT,
};
-typedef browser_sync::EnumSet<
+typedef csync::EnumSet<
ModelType, FIRST_REAL_MODEL_TYPE, LAST_REAL_MODEL_TYPE> ModelTypeSet;
-typedef browser_sync::EnumSet<
+typedef csync::EnumSet<
ModelType, UNSPECIFIED, LAST_REAL_MODEL_TYPE> FullModelTypeSet;
inline ModelType ModelTypeFromInt(int i) {
diff --git a/sync/internal_api/public/syncable/model_type_payload_map.cc b/sync/internal_api/public/syncable/model_type_payload_map.cc
index cff4c92..b803b39 100644
--- a/sync/internal_api/public/syncable/model_type_payload_map.cc
+++ b/sync/internal_api/public/syncable/model_type_payload_map.cc
@@ -11,7 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-using browser_sync::ModelSafeRoutingInfo;
+using csync::ModelSafeRoutingInfo;
namespace syncable {
ModelTypePayloadMap ModelTypePayloadMapFromEnumSet(
@@ -36,10 +36,10 @@ ModelTypeSet ModelTypePayloadMapToEnumSet(
}
ModelTypePayloadMap ModelTypePayloadMapFromRoutingInfo(
- const browser_sync::ModelSafeRoutingInfo& routes,
+ const csync::ModelSafeRoutingInfo& routes,
const std::string& payload) {
ModelTypePayloadMap types_with_payloads;
- for (browser_sync::ModelSafeRoutingInfo::const_iterator i = routes.begin();
+ for (csync::ModelSafeRoutingInfo::const_iterator i = routes.begin();
i != routes.end(); ++i) {
types_with_payloads[i->first] = payload;
}
diff --git a/sync/internal_api/public/syncable/model_type_payload_map.h b/sync/internal_api/public/syncable/model_type_payload_map.h
index 1bf3884..8f3319a 100644
--- a/sync/internal_api/public/syncable/model_type_payload_map.h
+++ b/sync/internal_api/public/syncable/model_type_payload_map.h
@@ -37,7 +37,7 @@ ModelTypeSet ModelTypePayloadMapToEnumSet(
// Make a TypePayloadMap for all the enabled types in a
// ModelSafeRoutingInfo using a default payload.
ModelTypePayloadMap ModelTypePayloadMapFromRoutingInfo(
- const browser_sync::ModelSafeRoutingInfo& routes,
+ const csync::ModelSafeRoutingInfo& routes,
const std::string& payload);
std::string ModelTypePayloadMapToString(
@@ -53,7 +53,7 @@ void CoalescePayloads(ModelTypePayloadMap* original,
const ModelTypePayloadMap& update);
void PurgeStalePayload(ModelTypePayloadMap* original,
- const browser_sync::ModelSafeRoutingInfo& routing_info);
+ const csync::ModelSafeRoutingInfo& routing_info);
} // namespace syncable
diff --git a/sync/internal_api/public/test/test_user_share.h b/sync/internal_api/public/test/test_user_share.h
index 7386b18..91c4e9e 100644
--- a/sync/internal_api/public/test/test_user_share.h
+++ b/sync/internal_api/public/test/test_user_share.h
@@ -34,7 +34,7 @@
#include "base/basictypes.h"
#include "sync/internal_api/public/user_share.h"
-namespace browser_sync {
+namespace csync {
class TestDirectorySetterUpper;
@@ -63,6 +63,6 @@ class TestUserShare {
DISALLOW_COPY_AND_ASSIGN(TestUserShare);
};
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_
diff --git a/sync/internal_api/public/util/enum_set.h b/sync/internal_api/public/util/enum_set.h
index de270d8..1a989ed 100644
--- a/sync/internal_api/public/util/enum_set.h
+++ b/sync/internal_api/public/util/enum_set.h
@@ -13,7 +13,7 @@
#include "base/basictypes.h"
#include "base/logging.h"
-namespace browser_sync {
+namespace csync {
// Forward declarations needed for friend declarations.
template <typename E, E MinEnumValue, E MaxEnumValue>
@@ -281,6 +281,6 @@ EnumSet<E, Min, Max> Difference(EnumSet<E, Min, Max> set1,
return EnumSet<E, Min, Max>(set1.enums_ & ~set2.enums_);
}
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_UTIL_ENUM_SET_H_
diff --git a/sync/internal_api/public/util/enum_set_unittest.cc b/sync/internal_api/public/util/enum_set_unittest.cc
index 2caa1de..1f6223c 100644
--- a/sync/internal_api/public/util/enum_set_unittest.cc
+++ b/sync/internal_api/public/util/enum_set_unittest.cc
@@ -7,7 +7,7 @@
#include "base/basictypes.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace browser_sync {
+namespace csync {
namespace {
enum TestEnum {
@@ -192,4 +192,4 @@ TEST_F(EnumSetTest, Difference) {
}
} // namespace
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
index 1439e2b..f13c09a 100644
--- a/sync/internal_api/public/util/experiments.h
+++ b/sync/internal_api/public/util/experiments.h
@@ -8,7 +8,7 @@
#include "sync/internal_api/public/syncable/model_type.h"
-namespace browser_sync {
+namespace csync {
// A structure to hold the enable status of experimental sync features.
struct Experiments {
diff --git a/sync/internal_api/public/util/immutable.h b/sync/internal_api/public/util/immutable.h
index 6624b90..3c20a4f 100644
--- a/sync/internal_api/public/util/immutable.h
+++ b/sync/internal_api/public/util/immutable.h
@@ -26,7 +26,7 @@
// undesirable. Here's the above code re-written using Immutable<T>:
//
// void ProcessStuff(
-// const browser_sync::Immutable<LargeObjectList>& stuff) {
+// const csync::Immutable<LargeObjectList>& stuff) {
// for (LargeObjectList::const_iterator it = stuff.Get().begin();
// it != stuff.Get().end(); ++it) {
// ... process it ...
@@ -72,7 +72,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
-namespace browser_sync {
+namespace csync {
namespace internal {
// This class is part of the Immutable implementation. DO NOT USE
@@ -257,6 +257,6 @@ Immutable<T> MakeImmutable(T* t) {
return Immutable<T>(t);
}
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_UTIL_IMMUTABLE_H_
diff --git a/sync/internal_api/public/util/immutable_unittest.cc b/sync/internal_api/public/util/immutable_unittest.cc
index ea0b29b..e124b70 100644
--- a/sync/internal_api/public/util/immutable_unittest.cc
+++ b/sync/internal_api/public/util/immutable_unittest.cc
@@ -16,7 +16,7 @@
#include "base/memory/ref_counted.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace browser_sync {
+namespace csync {
// Helper class that keeps track of the token passed in at
// construction and how many times that token is copied.
@@ -102,20 +102,20 @@ void swap(ADLToken& t1, ADLToken& t2) {
t1.Swap(&t2);
}
-} // namespace browser_sync
+} // namespace csync
// Allowed by the standard (17.4.3.1/1).
namespace std {
template <>
-void swap(browser_sync::SpecializationToken& t1,
- browser_sync::SpecializationToken& t2) {
+void swap(csync::SpecializationToken& t1,
+ csync::SpecializationToken& t2) {
t1.Swap(&t2);
}
} // namespace
-namespace browser_sync {
+namespace csync {
namespace {
class ImmutableTest : public ::testing::Test {};
@@ -247,4 +247,4 @@ TEST_F(ImmutableTest, Set) {
}
} // namespace
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/util/report_unrecoverable_error_function.h b/sync/internal_api/public/util/report_unrecoverable_error_function.h
index ead73f0..dfe00a8 100644
--- a/sync/internal_api/public/util/report_unrecoverable_error_function.h
+++ b/sync/internal_api/public/util/report_unrecoverable_error_function.h
@@ -6,7 +6,7 @@
#define SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_
#pragma once
-namespace browser_sync {
+namespace csync {
// A ReportUnrecoverableErrorFunction is a function that is called
// immediately when an unrecoverable error is encountered. Unlike
@@ -14,6 +14,6 @@ namespace browser_sync {
// context surrounding it.
typedef void (*ReportUnrecoverableErrorFunction)(void);
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_UTIL_REPORT_UNRECOVERABLE_ERROR_FUNCTION_H_
diff --git a/sync/internal_api/public/util/syncer_error.cc b/sync/internal_api/public/util/syncer_error.cc
index b4ba578..57cd4ed 100644
--- a/sync/internal_api/public/util/syncer_error.cc
+++ b/sync/internal_api/public/util/syncer_error.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
-namespace browser_sync {
+namespace csync {
#define ENUM_CASE(x) case x: return #x; break;
const char* GetSyncerErrorString(SyncerError value) {
@@ -32,5 +32,5 @@ const char* GetSyncerErrorString(SyncerError value) {
}
#undef ENUM_CASE
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h
index aa6ebb3..8df8afd 100644
--- a/sync/internal_api/public/util/syncer_error.h
+++ b/sync/internal_api/public/util/syncer_error.h
@@ -6,7 +6,7 @@
#define SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
#pragma once
-namespace browser_sync {
+namespace csync {
// This enum describes all the ways a SyncerCommand can fail.
//
@@ -41,6 +41,6 @@ enum SyncerError {
const char * GetSyncerErrorString(SyncerError);
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_INTERNAL_API_PUBLIC_UTIL_SYNCER_ERROR_H_
diff --git a/sync/internal_api/public/util/unrecoverable_error_handler.h b/sync/internal_api/public/util/unrecoverable_error_handler.h
index aaca1e9..a96a487 100644
--- a/sync/internal_api/public/util/unrecoverable_error_handler.h
+++ b/sync/internal_api/public/util/unrecoverable_error_handler.h
@@ -10,7 +10,7 @@
#include "base/location.h"
-namespace browser_sync {
+namespace csync {
class UnrecoverableErrorHandler {
public:
diff --git a/sync/internal_api/public/util/unrecoverable_error_info.cc b/sync/internal_api/public/util/unrecoverable_error_info.cc
index 369fa3e..ae17d2f 100644
--- a/sync/internal_api/public/util/unrecoverable_error_info.cc
+++ b/sync/internal_api/public/util/unrecoverable_error_info.cc
@@ -4,7 +4,7 @@
#include "sync/internal_api/public/util/unrecoverable_error_info.h"
-namespace browser_sync {
+namespace csync {
UnrecoverableErrorInfo::UnrecoverableErrorInfo()
: is_set_(false) {
@@ -41,4 +41,4 @@ const std::string& UnrecoverableErrorInfo::message() const {
return message_;
}
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/util/unrecoverable_error_info.h b/sync/internal_api/public/util/unrecoverable_error_info.h
index 64b780a..6e8af72 100644
--- a/sync/internal_api/public/util/unrecoverable_error_info.h
+++ b/sync/internal_api/public/util/unrecoverable_error_info.h
@@ -12,7 +12,7 @@
#include "base/location.h"
-namespace browser_sync {
+namespace csync {
class UnrecoverableErrorInfo {
public:
@@ -36,6 +36,6 @@ class UnrecoverableErrorInfo {
bool is_set_;
};
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
diff --git a/sync/internal_api/public/util/weak_handle.cc b/sync/internal_api/public/util/weak_handle.cc
index 136fc58..9de3f9b 100644
--- a/sync/internal_api/public/util/weak_handle.cc
+++ b/sync/internal_api/public/util/weak_handle.cc
@@ -10,7 +10,7 @@
#include "base/location.h"
#include "base/message_loop_proxy.h"
-namespace browser_sync {
+namespace csync {
namespace internal {
diff --git a/sync/internal_api/public/util/weak_handle.h b/sync/internal_api/public/util/weak_handle.h
index 653da60..fc7909e 100644
--- a/sync/internal_api/public/util/weak_handle.h
+++ b/sync/internal_api/public/util/weak_handle.h
@@ -68,7 +68,7 @@ namespace tracked_objects {
class Location;
} // namespace tracked_objects
-namespace browser_sync {
+namespace csync {
template <typename T> class WeakHandle;
@@ -286,7 +286,7 @@ class WeakHandle {
// Note that this doesn't override the regular copy constructor, so
// that one can be called on any thread.
template <typename U>
- WeakHandle(const browser_sync::WeakHandle<U>& other) // NOLINT
+ WeakHandle(const csync::WeakHandle<U>& other) // NOLINT
: core_(
other.IsInitialized() ?
new internal::WeakHandleCore<T>(other.Get()) :
@@ -374,6 +374,6 @@ WeakHandle<T> MakeWeakHandle(const base::WeakPtr<T>& ptr) {
return WeakHandle<T>(ptr);
}
-} // namespace browser_sync
+} // namespace csync
#endif // SYNC_UTIL_WEAK_HANDLE_H_
diff --git a/sync/internal_api/public/util/weak_handle_unittest.cc b/sync/internal_api/public/util/weak_handle_unittest.cc
index af919ad..67c7b20 100644
--- a/sync/internal_api/public/util/weak_handle_unittest.cc
+++ b/sync/internal_api/public/util/weak_handle_unittest.cc
@@ -13,7 +13,7 @@
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace browser_sync {
+namespace csync {
using ::testing::_;
using ::testing::SaveArg;
@@ -323,4 +323,4 @@ TEST_F(WeakHandleTest, TypeConversionConstructorUninitializedAssignment) {
EXPECT_FALSE(base_weak_handle.IsInitialized());
}
-} // namespace browser_sync
+} // namespace csync
diff --git a/sync/internal_api/public/write_node.h b/sync/internal_api/public/write_node.h
index ba61122..670c82b 100644
--- a/sync/internal_api/public/write_node.h
+++ b/sync/internal_api/public/write_node.h
@@ -14,7 +14,7 @@
#include "sync/internal_api/public/base_node.h"
#include "sync/internal_api/public/syncable/model_type.h"
-namespace browser_sync {
+namespace csync {
class Cryptographer;
class TestBookmarkModelAssociator;
}
@@ -173,8 +173,9 @@ class WriteNode : public BaseNode {
virtual const BaseTransaction* GetTransaction() const OVERRIDE;
+ syncable::MutableEntry* GetMutableEntryForTest();
+
private:
- friend class browser_sync::TestBookmarkModelAssociator;
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, EncryptBookmarksWithLegacyData);
void* operator new(size_t size); // Node is meant for stack use only.