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

Unified Diff: sync/engine/process_commit_response_command.h

Issue 10735041: Remove syncproto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address most comments Created 8 years, 5 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
« no previous file with comments | « sync/engine/net/server_connection_manager.cc ('k') | sync/engine/process_commit_response_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/process_commit_response_command.h
diff --git a/sync/engine/process_commit_response_command.h b/sync/engine/process_commit_response_command.h
index 96d8178ecf355e957c48ad852f92f58d0bd45a1e..a8492552ed995078812e2c3b55d134e275373d15 100644
--- a/sync/engine/process_commit_response_command.h
+++ b/sync/engine/process_commit_response_command.h
@@ -11,7 +11,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "sync/engine/model_changing_syncer_command.h"
-#include "sync/engine/syncproto.h"
+#include "sync/protocol/sync.pb.h"
namespace syncer {
@@ -52,8 +52,8 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
// or a serious error was encountered.
ProcessCommitResponseCommand(
const sessions::OrderedCommitSet& commit_set,
- const ClientToServerMessage& commit_message,
- const ClientToServerResponse& commit_response);
+ const sync_pb::ClientToServerMessage& commit_message,
+ const sync_pb::ClientToServerResponse& commit_response);
virtual ~ProcessCommitResponseCommand();
protected:
@@ -64,7 +64,7 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
sessions::SyncSession* session) OVERRIDE;
private:
- CommitResponse::ResponseType ProcessSingleCommitResponse(
+ sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse(
syncable::WriteTransaction* trans,
const sync_pb::CommitResponse_EntryResponse& pb_commit_response,
const sync_pb::SyncEntity& pb_committed_entry,
@@ -76,7 +76,7 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
void ProcessSuccessfulCommitResponse(
const sync_pb::SyncEntity& committed_entry,
- const CommitResponse_EntryResponse& entry_response,
+ const sync_pb::CommitResponse_EntryResponse& entry_response,
const syncable::Id& pre_commit_id, syncable::MutableEntry* local_entry,
bool syncing_was_set, std::set<syncable::Id>* deleted_folders);
@@ -84,14 +84,14 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
// Helper for ProcessSuccessfulCommitResponse.
bool UpdateVersionAfterCommit(
const sync_pb::SyncEntity& committed_entry,
- const CommitResponse_EntryResponse& entry_response,
+ const sync_pb::CommitResponse_EntryResponse& entry_response,
const syncable::Id& pre_commit_id,
syncable::MutableEntry* local_entry);
// If the server generated an ID for us during a commit, apply the new ID.
// Helper for ProcessSuccessfulCommitResponse.
bool ChangeIdAfterCommit(
- const CommitResponse_EntryResponse& entry_response,
+ const sync_pb::CommitResponse_EntryResponse& entry_response,
const syncable::Id& pre_commit_id,
syncable::MutableEntry* local_entry);
@@ -99,7 +99,7 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
// Helper for ProcessSuccessfulCommitResponse.
void UpdateServerFieldsAfterCommit(
const sync_pb::SyncEntity& committed_entry,
- const CommitResponse_EntryResponse& entry_response,
+ const sync_pb::CommitResponse_EntryResponse& entry_response,
syncable::MutableEntry* local_entry);
// The server can override some values during a commit; the overridden values
@@ -110,13 +110,13 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
// Helper for ProcessSuccessfulCommitResponse.
void OverrideClientFieldsAfterCommit(
const sync_pb::SyncEntity& committed_entry,
- const CommitResponse_EntryResponse& entry_response,
+ const sync_pb::CommitResponse_EntryResponse& entry_response,
syncable::MutableEntry* local_entry);
// Helper to extract the final name from the protobufs.
const std::string& GetResultingPostCommitName(
const sync_pb::SyncEntity& committed_entry,
- const CommitResponse_EntryResponse& entry_response);
+ const sync_pb::CommitResponse_EntryResponse& entry_response);
// Helper to clean up in case of failure.
void ClearSyncingBits(
@@ -124,8 +124,8 @@ class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
const std::vector<syncable::Id>& commit_ids);
const sessions::OrderedCommitSet& commit_set_;
- const ClientToServerMessage& commit_message_;
- const ClientToServerResponse& commit_response_;
+ const sync_pb::ClientToServerMessage& commit_message_;
+ const sync_pb::ClientToServerResponse& commit_response_;
DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand);
};
« no previous file with comments | « sync/engine/net/server_connection_manager.cc ('k') | sync/engine/process_commit_response_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698