| 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 // Simple interface for something that persists state. | 5 // Simple interface for something that persists state. |
| 6 | 6 |
| 7 #ifndef SYNC_NOTIFIER_STATE_WRITER_H_ | 7 #ifndef SYNC_NOTIFIER_STATE_WRITER_H_ |
| 8 #define SYNC_NOTIFIER_STATE_WRITER_H_ | 8 #define SYNC_NOTIFIER_STATE_WRITER_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 namespace csync { | 13 namespace syncer { |
| 14 | 14 |
| 15 class StateWriter { | 15 class StateWriter { |
| 16 public: | 16 public: |
| 17 virtual ~StateWriter() {} | 17 virtual ~StateWriter() {} |
| 18 | 18 |
| 19 virtual void WriteState(const std::string& state) = 0; | 19 virtual void WriteState(const std::string& state) = 0; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // sync_notifier | 22 } // namespace syncer |
| 23 | 23 |
| 24 #endif // SYNC_NOTIFIER_STATE_WRITER_H_ | 24 #endif // SYNC_NOTIFIER_STATE_WRITER_H_ |
| OLD | NEW |