OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ |
6 #define CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ | 6 #define CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/sessions/session_id.h" | |
10 | 12 |
11 namespace browser_sync { | 13 namespace browser_sync { |
12 | 14 |
13 class SyncedWindowDelegate; | 15 class SyncedWindowDelegate; |
14 | 16 |
15 class SyncedWindowDelegatesGetter { | 17 class SyncedWindowDelegatesGetter { |
16 public: | 18 public: |
17 SyncedWindowDelegatesGetter(); | 19 SyncedWindowDelegatesGetter(); |
18 virtual ~SyncedWindowDelegatesGetter(); | 20 virtual ~SyncedWindowDelegatesGetter(); |
19 virtual std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates(); | 21 virtual std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() = 0; |
Nicolas Zea
2015/08/31 22:12:47
nit: although it didn't have them before, would be
maxbogue
2015/09/01 17:29:28
Done.
| |
22 virtual const SyncedWindowDelegate* FindById(SessionID::id_type id) = 0; | |
23 | |
20 private: | 24 private: |
21 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegatesGetter); | 25 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegatesGetter); |
22 }; | 26 }; |
23 | 27 |
24 } // namespace browser_sync | 28 } // namespace browser_sync |
25 | 29 |
26 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ | 30 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_ |
OLD | NEW |