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 // Wrappers to help us work with ids and protobuffers. | 5 // Wrappers to help us work with ids and protobuffers. |
6 | 6 |
7 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCPROTO_H_ | 7 #ifndef SYNC_ENGINE_SYNCPROTO_H_ |
8 #define CHROME_BROWSER_SYNC_ENGINE_SYNCPROTO_H_ | 8 #define SYNC_ENGINE_SYNCPROTO_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "chrome/browser/sync/syncable/model_type.h" | |
12 #include "chrome/browser/sync/syncable/syncable_id.h" | |
13 #include "sync/protocol/sync.pb.h" | 11 #include "sync/protocol/sync.pb.h" |
| 12 #include "sync/syncable/model_type.h" |
| 13 #include "sync/syncable/syncable_id.h" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 | 16 |
17 template<class Base> | 17 template<class Base> |
18 class IdWrapper : public Base { | 18 class IdWrapper : public Base { |
19 public: | 19 public: |
20 IdWrapper() {} | 20 IdWrapper() {} |
21 explicit IdWrapper(const Base& other) : Base(other) { | 21 explicit IdWrapper(const Base& other) : Base(other) { |
22 } | 22 } |
23 syncable::Id id() const { | 23 syncable::Id id() const { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 }; | 77 }; |
78 | 78 |
79 typedef sync_pb::CommitMessage CommitMessage; | 79 typedef sync_pb::CommitMessage CommitMessage; |
80 typedef sync_pb::ClientToServerResponse ClientToServerResponse; | 80 typedef sync_pb::ClientToServerResponse ClientToServerResponse; |
81 typedef sync_pb::CommitResponse CommitResponse; | 81 typedef sync_pb::CommitResponse CommitResponse; |
82 typedef sync_pb::GetUpdatesResponse GetUpdatesResponse; | 82 typedef sync_pb::GetUpdatesResponse GetUpdatesResponse; |
83 typedef sync_pb::GetUpdatesMessage GetUpdatesMessage; | 83 typedef sync_pb::GetUpdatesMessage GetUpdatesMessage; |
84 | 84 |
85 } // namespace browser_sync | 85 } // namespace browser_sync |
86 | 86 |
87 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCPROTO_H_ | 87 #endif // SYNC_ENGINE_SYNCPROTO_H_ |
OLD | NEW |