Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: chrome/browser/ui/sync/browser_synced_window_delegates_getter.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix Android. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
6 #define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_ 6 #define CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/sessions/core/session_id.h" 11 #include "components/sessions/core/session_id.h"
12 #include "components/sync_sessions/synced_window_delegates_getter.h" 12 #include "components/sync_sessions/synced_window_delegates_getter.h"
13 13
14 class Profile; 14 class Profile;
15 15
skym 2016/09/14 22:29:58 Okay, I think we need to decide, does chrome/brows
maxbogue 2016/09/15 00:43:54 I really don't know why half that stuff doesn't ev
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 class SyncedWindowDelegate;
19
20 // This class defines how to access SyncedWindowDelegates on desktop. 18 // This class defines how to access SyncedWindowDelegates on desktop.
21 class BrowserSyncedWindowDelegatesGetter : public SyncedWindowDelegatesGetter { 19 class BrowserSyncedWindowDelegatesGetter
20 : public sync_sessions::SyncedWindowDelegatesGetter {
22 public: 21 public:
23 explicit BrowserSyncedWindowDelegatesGetter(Profile* profile); 22 explicit BrowserSyncedWindowDelegatesGetter(Profile* profile);
24 ~BrowserSyncedWindowDelegatesGetter() override; 23 ~BrowserSyncedWindowDelegatesGetter() override;
25 24
26 // SyncedWindowDelegatesGetter implementation 25 // SyncedWindowDelegatesGetter implementation
27 std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() override; 26 std::set<const sync_sessions::SyncedWindowDelegate*>
28 const SyncedWindowDelegate* FindById(SessionID::id_type id) override; 27 GetSyncedWindowDelegates() override;
28 const sync_sessions::SyncedWindowDelegate* FindById(
29 SessionID::id_type id) override;
29 30
30 private: 31 private:
31 Profile* const profile_; 32 Profile* const profile_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegatesGetter); 34 DISALLOW_COPY_AND_ASSIGN(BrowserSyncedWindowDelegatesGetter);
34 }; 35 };
35 36
36 } // namespace browser_sync 37 } // namespace browser_sync
37 38
38 #endif // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_ 39 #endif // CHROME_BROWSER_UI_SYNC_BROWSER_SYNCED_WINDOW_DELEGATES_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698