| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Simple interface for something that persists state. | 5 // Simple interface for something that persists state. |
| 6 | 6 |
| 7 #ifndef COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ | 7 #ifndef COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ |
| 8 #define COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ | 8 #define COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "components/invalidation/public/invalidation_export.h" | 12 #include "components/invalidation/public/invalidation_export.h" |
| 13 | 13 |
| 14 namespace syncer { | 14 namespace syncer { |
| 15 | 15 |
| 16 class INVALIDATION_EXPORT_PRIVATE StateWriter { | 16 class INVALIDATION_EXPORT StateWriter { |
| 17 public: | 17 public: |
| 18 virtual ~StateWriter() {} | 18 virtual ~StateWriter() {} |
| 19 | 19 |
| 20 virtual void WriteState(const std::string& state) = 0; | 20 virtual void WriteState(const std::string& state) = 0; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace syncer | 23 } // namespace syncer |
| 24 | 24 |
| 25 #endif // COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ | 25 #endif // COMPONENTS_INVALIDATION_IMPL_STATE_WRITER_H_ |
| OLD | NEW |