Chromium Code Reviews| Index: blimp/net/helium/vector_clock.h |
| diff --git a/blimp/net/helium/vector_clock.h b/blimp/net/helium/vector_clock.h |
| index c375aacc274a52b642d5da580c22579180ef25db..b511e4ff3a002488e8f724a5f9a42ee71d29d769 100644 |
| --- a/blimp/net/helium/vector_clock.h |
| +++ b/blimp/net/helium/vector_clock.h |
| @@ -7,6 +7,8 @@ |
| #include <stdint.h> |
| +#include "blimp/common/proto/helium.pb.h" |
| + |
| namespace blimp { |
| // From wikipedia: |
| @@ -56,6 +58,14 @@ class VectorClock { |
| remote_revision_ = remote_revision; |
| } |
| + // Create the ProtoBuf object corresponding to this object |
|
Kevin M
2016/10/03 21:44:26
"proto message"; trailing period; const
scf
2016/10/03 22:20:18
Done.
|
| + helium::VectorClockMessage ToProto(); |
| + |
| + // Inverts the local and remote components respectively |
|
Kevin M
2016/10/03 21:44:26
Trailing period.
scf
2016/10/03 22:20:18
Done.
|
| + // Used when we send VectorClock across the wire. The local becomes |
| + // remote and vice versa. |
| + VectorClock Invert(); |
|
Kevin M
2016/10/03 21:44:26
const
scf
2016/10/03 22:20:18
Done.
|
| + |
| private: |
| Revision local_revision_ = 0; |
| Revision remote_revision_ = 0; |