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

Side by Side Diff: chrome/browser/sync/engine/process_commit_response_command.h

Issue 194065: Initial commit of sync engine code to browser/sync.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixes to gtest include path, reverted syncapi. Created 11 years, 3 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
7
8 #include <set>
9
10 #include "base/basictypes.h"
11 #include "chrome/browser/sync/engine/model_changing_syncer_command.h"
12 #include "chrome/browser/sync/engine/syncer_session.h"
13 #include "chrome/browser/sync/engine/syncproto.h"
14
15 namespace syncable {
16 class Id;
17 class WriteTransaction;
18 class MutableEntry;
19 }
20
21 namespace browser_sync {
22
23 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand {
24 public:
25
26 ProcessCommitResponseCommand();
27 virtual ~ProcessCommitResponseCommand();
28
29 virtual void ModelChangingExecuteImpl(SyncerSession* session);
30 private:
31 CommitResponse::RESPONSE_TYPE ProcessSingleCommitResponse(
32 syncable::WriteTransaction* trans,
33 const sync_pb::CommitResponse_EntryResponse& pb_server_entry,
34 const syncable::Id& pre_commit_id, std::set<syncable::Id>*
35 conflicting_new_directory_ids,
36 std::set<syncable::Id>* deleted_folders,
37 SyncerSession* const session);
38
39 void ProcessSuccessfulCommitResponse(syncable::WriteTransaction* trans,
40 const CommitResponse_EntryResponse& server_entry,
41 const syncable::Id& pre_commit_id, syncable::MutableEntry* local_entry,
42 bool syncing_was_set, std::set<syncable::Id>* deleted_folders,
43 SyncerSession* const session);
44
45 void PerformCommitTimeNameAside(
46 syncable::WriteTransaction* trans,
47 const CommitResponse_EntryResponse& server_entry,
48 syncable::MutableEntry* local_entry);
49
50 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand);
51 };
52 } // namespace browser_sync
53
54 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698