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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
6 #define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
10 #include "base/macros.h"
11 #include "components/sessions/session_id.h"
12 #include "components/sync_driver/sessions/synced_window_delegates_getter.h"
14 namespace browser_sync
{
16 class SyncedWindowDelegate
;
18 // This class defines how to access SyncedWindowDelegates on desktop.
19 class BrowserSyncedWindowDelegatesGetter
: public SyncedWindowDelegatesGetter
{
21 BrowserSyncedWindowDelegatesGetter();
22 ~BrowserSyncedWindowDelegatesGetter() override
;
24 // SyncedWindowDelegatesGetter implementation
25 std::set
<const SyncedWindowDelegate
*> GetSyncedWindowDelegates() override
;
26 const SyncedWindowDelegate
* FindById(SessionID::id_type id
) override
;
29 DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegatesGetter
);
32 } // namespace browser_sync
34 #endif // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_