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

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

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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 | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/process_updates_command.h » ('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 (c) 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_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ 5 #ifndef SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
6 #define SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ 6 #define SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "sync/base/sync_export.h"
13 #include "sync/engine/model_changing_syncer_command.h" 14 #include "sync/engine/model_changing_syncer_command.h"
14 #include "sync/protocol/sync.pb.h" 15 #include "sync/protocol/sync.pb.h"
15 16
16 namespace syncer { 17 namespace syncer {
17 18
18 namespace sessions { 19 namespace sessions {
19 class OrderedCommitSet; 20 class OrderedCommitSet;
20 } 21 }
21 22
22 namespace syncable { 23 namespace syncable {
23 class Id; 24 class Id;
24 class WriteTransaction; 25 class WriteTransaction;
25 class MutableEntry; 26 class MutableEntry;
26 class Directory; 27 class Directory;
27 } 28 }
28 29
29 // A class that processes the server's response to our commmit attempt. Note 30 // A class that processes the server's response to our commmit attempt. Note
30 // that some of the preliminary processing is performed in 31 // that some of the preliminary processing is performed in
31 // PostClientToServerMessage command. 32 // PostClientToServerMessage command.
32 // 33 //
33 // As part of processing the commit response, this command will modify sync 34 // As part of processing the commit response, this command will modify sync
34 // entries. It can rename items, update their versions, etc. 35 // entries. It can rename items, update their versions, etc.
35 // 36 //
36 // This command will return a non-SYNCER_OK value if an error occurred while 37 // This command will return a non-SYNCER_OK value if an error occurred while
37 // processing the response, or if the server's response indicates that it had 38 // processing the response, or if the server's response indicates that it had
38 // trouble processing the request. 39 // trouble processing the request.
39 // 40 //
40 // See SyncerCommand documentation for more info. 41 // See SyncerCommand documentation for more info.
41 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand { 42 class SYNC_EXPORT_PRIVATE ProcessCommitResponseCommand
43 : public ModelChangingSyncerCommand {
42 public: 44 public:
43 45
44 // The commit_set parameter contains references to all the items which were 46 // The commit_set parameter contains references to all the items which were
45 // to be committed in this batch. 47 // to be committed in this batch.
46 // 48 //
47 // The commmit_message parameter contains the message that was sent to the 49 // The commmit_message parameter contains the message that was sent to the
48 // server. 50 // server.
49 // 51 //
50 // The commit_response parameter contains the response received from the 52 // The commit_response parameter contains the response received from the
51 // server. This may be uninitialized if we were unable to contact the server 53 // server. This may be uninitialized if we were unable to contact the server
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const sessions::OrderedCommitSet& commit_set_; 128 const sessions::OrderedCommitSet& commit_set_;
127 const sync_pb::ClientToServerMessage& commit_message_; 129 const sync_pb::ClientToServerMessage& commit_message_;
128 const sync_pb::ClientToServerResponse& commit_response_; 130 const sync_pb::ClientToServerResponse& commit_response_;
129 131
130 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); 132 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand);
131 }; 133 };
132 134
133 } // namespace syncer 135 } // namespace syncer
134 136
135 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ 137 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_
OLDNEW
« no previous file with comments | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/process_updates_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698