OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "chrome/browser/sessions/session_id.h" | 10 #include "components/sessions/session_id.h" |
11 | 11 |
12 namespace browser_sync { | 12 namespace browser_sync { |
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 WindowList | 20 // Methods originating from WindowList |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Return true if we are currently restoring sessions asynchronously. | 65 // Return true if we are currently restoring sessions asynchronously. |
66 virtual bool IsSessionRestoreInProgress() const = 0; | 66 virtual bool IsSessionRestoreInProgress() const = 0; |
67 | 67 |
68 protected: | 68 protected: |
69 virtual ~SyncedWindowDelegate() {} | 69 virtual ~SyncedWindowDelegate() {} |
70 }; | 70 }; |
71 | 71 |
72 } // namespace browser_sync | 72 } // namespace browser_sync |
73 | 73 |
74 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ | 74 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATE_H_ |
OLD | NEW |