Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / sync / sessions / synced_window_delegates_getter.h
blob1d1bf60d3198ad1ede23769620552dbbe96dc707
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_
6 #define CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_
8 #include <set>
10 #include "base/macros.h"
11 #include "components/sessions/session_id.h"
13 namespace browser_sync {
15 class SyncedWindowDelegate;
17 // An interface for accessing SyncedWindowDelegates. Subclasses define
18 // how this is done on different platforms.
19 class SyncedWindowDelegatesGetter {
20 public:
21 SyncedWindowDelegatesGetter();
22 virtual ~SyncedWindowDelegatesGetter();
24 // Returns all SyncedWindowDelegate instances.
25 virtual std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() = 0;
27 // Find a SyncedWindowDelegate given its window's id.
28 virtual const SyncedWindowDelegate* FindById(SessionID::id_type id) = 0;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegatesGetter);
34 } // namespace browser_sync
36 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATES_GETTER_H_