| 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 CHROME_BROWSER_SYNC_ENGINE_SYNCER_TYPES_H_ | 5 #ifndef SYNC_ENGINE_SYNCER_TYPES_H_ |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_SYNCER_TYPES_H_ | 6 #define SYNC_ENGINE_SYNCER_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "chrome/browser/sync/syncable/model_type.h" | 14 #include "sync/syncable/model_type.h" |
| 15 | 15 |
| 16 namespace syncable { | 16 namespace syncable { |
| 17 class Id; | 17 class Id; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // The intent of this is to keep all shared data types and enums for the syncer | 20 // The intent of this is to keep all shared data types and enums for the syncer |
| 21 // in a single place without having dependencies between other files. | 21 // in a single place without having dependencies between other files. |
| 22 namespace browser_sync { | 22 namespace browser_sync { |
| 23 | 23 |
| 24 namespace sessions { | 24 namespace sessions { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 public: | 148 public: |
| 149 // TODO(tim): Consider splitting this up to multiple callbacks, rather than | 149 // TODO(tim): Consider splitting this up to multiple callbacks, rather than |
| 150 // have to do Event e(type); OnSyncEngineEvent(e); at all callsites, | 150 // have to do Event e(type); OnSyncEngineEvent(e); at all callsites, |
| 151 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) = 0; | 151 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) = 0; |
| 152 protected: | 152 protected: |
| 153 virtual ~SyncEngineEventListener() {} | 153 virtual ~SyncEngineEventListener() {} |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace browser_sync | 156 } // namespace browser_sync |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_TYPES_H_ | 158 #endif // SYNC_ENGINE_SYNCER_TYPES_H_ |
| OLD | NEW |