| OLD | NEW |
| 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_ |
| OLD | NEW |