Chromium Code Reviews| Index: chrome/browser/ui/sync/browser_synced_window_delegates_getter.h |
| diff --git a/chrome/browser/ui/sync/browser_synced_window_delegates_getter.h b/chrome/browser/ui/sync/browser_synced_window_delegates_getter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c4905e96693f76859358553466e672d8d0efe40 |
| --- /dev/null |
| +++ b/chrome/browser/ui/sync/browser_synced_window_delegates_getter.h |
| @@ -0,0 +1,30 @@ |
| +// 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 "chrome/browser/sync/sessions/synced_window_delegates_getter.h" |
| +#include "components/sessions/session_id.h" |
| + |
| +namespace browser_sync { |
| + |
| +class SyncedWindowDelegate; |
| + |
| +class BrowserSyncedWindowDelegatesGetter : public SyncedWindowDelegatesGetter { |
|
Nicolas Zea
2015/08/31 22:12:47
Comment about class purpose
maxbogue
2015/09/01 17:29:28
Done.
|
| + public: |
| + BrowserSyncedWindowDelegatesGetter(); |
|
Nicolas Zea
2015/08/31 22:12:47
explicit virtual destructor
maxbogue
2015/09/01 17:29:28
Done.
|
| + std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() override; |
|
Nicolas Zea
2015/08/31 22:12:48
newline above and comment that this is implementin
maxbogue
2015/09/01 17:29:28
Done.
|
| + 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_ |