| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "components/sessions/core/session_id.h" | 10 #include "components/sessions/core/session_id.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace sync_sessions { |
| 13 | 13 |
| 14 class SyncedTabDelegate; | 14 class SyncedTabDelegate; |
| 15 | 15 |
| 16 // A SyncedWindowDelegate is used to insulate the sync code from depending | 16 // A SyncedWindowDelegate is used to insulate the sync code from depending |
| 17 // directly on Browser and BrowserList. | 17 // directly on Browser and BrowserList. |
| 18 class SyncedWindowDelegate { | 18 class SyncedWindowDelegate { |
| 19 public: | 19 public: |
| 20 // Methods originating from Browser. | 20 // Methods originating from Browser. |
| 21 | 21 |
| 22 // Returns true iff this browser has a visible window representation | 22 // Returns true iff this browser has a visible window representation |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Helper methods. | 59 // Helper methods. |
| 60 | 60 |
| 61 // Return true if this window should be considered for syncing. | 61 // Return true if this window should be considered for syncing. |
| 62 virtual bool ShouldSync() const = 0; | 62 virtual bool ShouldSync() const = 0; |
| 63 | 63 |
| 64 protected: | 64 protected: |
| 65 virtual ~SyncedWindowDelegate() {} | 65 virtual ~SyncedWindowDelegate() {} |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace browser_sync | 68 } // namespace sync_sessions |
| 69 | 69 |
| 70 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ | 70 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ |
| OLD | NEW |