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

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

Issue 10038041: sync: Loop committing items without downloading updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_POST_COMMIT_MESSAGE_COMMAND_H_ 5 #ifndef SYNC_ENGINE_POST_COMMIT_MESSAGE_COMMAND_H_
6 #define SYNC_ENGINE_POST_COMMIT_MESSAGE_COMMAND_H_ 6 #define SYNC_ENGINE_POST_COMMIT_MESSAGE_COMMAND_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "sync/engine/syncer_command.h" 10 #include "sync/engine/syncer_command.h"
11 #include "sync/engine/syncproto.h"
11 12
12 namespace browser_sync { 13 namespace browser_sync {
13 14
14 class PostCommitMessageCommand : public SyncerCommand { 15 class PostCommitMessageCommand : public SyncerCommand {
15 public: 16 public:
16 PostCommitMessageCommand(); 17 PostCommitMessageCommand(const ClientToServerMessage& message,
18 ClientToServerResponse* response);
17 virtual ~PostCommitMessageCommand(); 19 virtual ~PostCommitMessageCommand();
18 20
19 // SyncerCommand implementation. 21 // SyncerCommand implementation.
20 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; 22 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE;
21 23
22 private: 24 private:
25 const ClientToServerMessage& commit_message_;
26 ClientToServerResponse* commit_response_;
27
23 DISALLOW_COPY_AND_ASSIGN(PostCommitMessageCommand); 28 DISALLOW_COPY_AND_ASSIGN(PostCommitMessageCommand);
24 }; 29 };
25 30
26 } // namespace browser_sync 31 } // namespace browser_sync
27 32
28 #endif // SYNC_ENGINE_POST_COMMIT_MESSAGE_COMMAND_H_ 33 #endif // SYNC_ENGINE_POST_COMMIT_MESSAGE_COMMAND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698