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 #ifndef SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ | 5 #ifndef SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ |
6 #define SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ | 6 #define SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
12 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 11 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
13 | 12 |
14 namespace syncable { | 13 namespace syncable { |
15 class Id; | 14 class Id; |
16 } | 15 } |
17 | 16 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // TODO(tim): Consider splitting this up to multiple callbacks, rather than | 62 // TODO(tim): Consider splitting this up to multiple callbacks, rather than |
64 // have to do Event e(type); OnSyncEngineEvent(e); at all callsites, | 63 // have to do Event e(type); OnSyncEngineEvent(e); at all callsites, |
65 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) = 0; | 64 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) = 0; |
66 protected: | 65 protected: |
67 virtual ~SyncEngineEventListener() {} | 66 virtual ~SyncEngineEventListener() {} |
68 }; | 67 }; |
69 | 68 |
70 } // namespace syncer | 69 } // namespace syncer |
71 | 70 |
72 #endif // SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ | 71 #endif // SYNC_ENGINE_SYNC_ENGINE_EVENT_H_ |
OLD | NEW |