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..a8e3bba02beba12da1087a2673e5feb65544ca77 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,12 @@ class VectorClock { |
| remote_revision_ = remote_revision; |
| } |
| + // Create the ProtoBuf object corresponding to this object |
| + helium::VectorClock CreateProto(); |
| + |
| + // Inverts the local and remote components respectively |
| + VectorClock Invert(); |
|
Sriram
2016/09/29 18:52:21
Can you update the comment to tell when it would b
scf
2016/09/29 23:13:39
Done.
|
| + |
| private: |
| Revision local_revision_ = 0; |
| Revision remote_revision_ = 0; |