summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/sync/browser_synced_window_delegates_getter.h
blob: 54128b58604706ca74d1dd819a1431411327aef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
#define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_

#include <set>

#include "base/macros.h"
#include "components/sessions/session_id.h"
#include "components/sync_driver/sessions/synced_window_delegates_getter.h"

namespace browser_sync {

class SyncedWindowDelegate;

// This class defines how to access SyncedWindowDelegates on desktop.
class BrowserSyncedWindowDelegatesGetter : public SyncedWindowDelegatesGetter {
 public:
  BrowserSyncedWindowDelegatesGetter();
  ~BrowserSyncedWindowDelegatesGetter() override;

  // SyncedWindowDelegatesGetter implementation
  std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() override;
  const SyncedWindowDelegate* FindById(SessionID::id_type id) override;

 private:
  DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegatesGetter);
};

}  // namespace browser_sync

#endif  // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_