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

Side by Side Diff: components/sync_sessions/synced_window_delegate.h

Issue 2343463003: [Sync] Fix namespaces for the sync_sessions component. (Closed)
Patch Set: Fix gn. 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_
6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "components/sessions/core/session_id.h" 10 #include "components/sessions/core/session_id.h"
11 11
12 namespace browser_sync { 12 namespace sync_sessions {
13 13
14 class SyncedTabDelegate; 14 class SyncedTabDelegate;
15 15
16 // A SyncedWindowDelegate is used to insulate the sync code from depending 16 // A SyncedWindowDelegate is used to insulate the sync code from depending
17 // directly on Browser and BrowserList. 17 // directly on Browser and BrowserList.
18 class SyncedWindowDelegate { 18 class SyncedWindowDelegate {
19 public: 19 public:
20 // Methods originating from Browser. 20 // Methods originating from Browser.
21 21
22 // Returns true iff this browser has a visible window representation 22 // Returns true iff this browser has a visible window representation
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Helper methods. 59 // Helper methods.
60 60
61 // Return true if this window should be considered for syncing. 61 // Return true if this window should be considered for syncing.
62 virtual bool ShouldSync() const = 0; 62 virtual bool ShouldSync() const = 0;
63 63
64 protected: 64 protected:
65 virtual ~SyncedWindowDelegate() {} 65 virtual ~SyncedWindowDelegate() {}
66 }; 66 };
67 67
68 } // namespace browser_sync 68 } // namespace sync_sessions
69 69
70 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_ 70 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/sync_sessions/synced_tab_delegate.cc ('k') | components/sync_sessions/synced_window_delegates_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698