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 CHROME_BROWSER_SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ | 6 #define SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/sync/engine/syncer_command.h" | 11 #include "sync/engine/syncer_command.h" |
12 #include "chrome/browser/sync/engine/syncproto.h" | 12 #include "sync/engine/syncproto.h" |
13 #include "chrome/browser/sync/syncable/syncable.h" | 13 #include "sync/syncable/syncable.h" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 | 16 |
17 class BuildCommitCommand : public SyncerCommand { | 17 class BuildCommitCommand : public SyncerCommand { |
18 public: | 18 public: |
19 BuildCommitCommand(); | 19 BuildCommitCommand(); |
20 virtual ~BuildCommitCommand(); | 20 virtual ~BuildCommitCommand(); |
21 | 21 |
22 // SyncerCommand implementation. | 22 // SyncerCommand implementation. |
23 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; | 23 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
41 const syncable::Entry& entry); | 41 const syncable::Entry& entry); |
42 // Given two values of the type returned by FindAnchorPosition, | 42 // Given two values of the type returned by FindAnchorPosition, |
43 // compute a third value in between the two ranges. | 43 // compute a third value in between the two ranges. |
44 int64 InterpolatePosition(int64 lo, int64 hi); | 44 int64 InterpolatePosition(int64 lo, int64 hi); |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(BuildCommitCommand); | 46 DISALLOW_COPY_AND_ASSIGN(BuildCommitCommand); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace browser_sync | 49 } // namespace browser_sync |
50 | 50 |
51 #endif // CHROME_BROWSER_SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ | 51 #endif // SYNC_ENGINE_BUILD_COMMIT_COMMAND_H_ |
OLD | NEW |