| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace browser_sync { | 13 namespace sync_sessions { |
| 14 | 14 |
| 15 class SyncedTabDelegate; | 15 class SyncedTabDelegate; |
| 16 | 16 |
| 17 // An interface defining the ways in which local open tab events can interact | 17 // An interface defining the ways in which local open tab events can interact |
| 18 // with session sync. All local tab events flow to sync via this interface. | 18 // with session sync. All local tab events flow to sync via this interface. |
| 19 // In that way it is analogous to sync changes flowing to the local model | 19 // In that way it is analogous to sync changes flowing to the local model |
| 20 // via ProcessSyncChanges, just with a more granular breakdown. | 20 // via ProcessSyncChanges, just with a more granular breakdown. |
| 21 class LocalSessionEventHandler { | 21 class LocalSessionEventHandler { |
| 22 public: | 22 public: |
| 23 virtual ~LocalSessionEventHandler() {} | 23 virtual ~LocalSessionEventHandler() {} |
| (...skipping 27 matching lines...) Expand all Loading... |
| 51 virtual void StartRoutingTo(LocalSessionEventHandler* handler) = 0; | 51 virtual void StartRoutingTo(LocalSessionEventHandler* handler) = 0; |
| 52 virtual void Stop() = 0; | 52 virtual void Stop() = 0; |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 LocalSessionEventRouter() {} | 55 LocalSessionEventRouter() {} |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(LocalSessionEventRouter); | 58 DISALLOW_COPY_AND_ASSIGN(LocalSessionEventRouter); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace browser_sync | 61 } // namespace sync_sessions |
| 62 | 62 |
| 63 #endif // COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ | 63 #endif // COMPONENTS_SYNC_SESSIONS_LOCAL_SESSION_EVENT_ROUTER_H_ |
| OLD | NEW |