| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_HELIUM_SERIALIZABLE_H_ | |
| 6 #define BLIMP_HELIUM_SERIALIZABLE_H_ | |
| 7 | |
| 8 namespace google { | |
| 9 namespace protobuf { | |
| 10 namespace io { | |
| 11 class CodedInputStream; | |
| 12 class CodedOutputStream; | |
| 13 } // namespace io | |
| 14 } // namespace protobuf | |
| 15 } // namespace google | |
| 16 | |
| 17 namespace blimp { | |
| 18 namespace helium { | |
| 19 | |
| 20 // Defines methods needed to serialize and deserialize |this| from a byte | |
| 21 // stream. | |
| 22 class Serializable { | |
| 23 public: | |
| 24 virtual void Serialize( | |
| 25 google::protobuf::io::CodedOutputStream* output_stream) const = 0; | |
| 26 virtual bool Parse(google::protobuf::io::CodedInputStream* input_stream) = 0; | |
| 27 }; | |
| 28 | |
| 29 } // namespace helium | |
| 30 } // namespace blimp | |
| 31 | |
| 32 #endif // BLIMP_HELIUM_SERIALIZABLE_H_ | |
| OLD | NEW |