OLD | NEW |
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 CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const std::string& session_string_value, | 49 const std::string& session_string_value, |
50 SessionID::id_type window_num, | 50 SessionID::id_type window_num, |
51 SessionID::id_type tab_id, | 51 SessionID::id_type tab_id, |
52 const WindowOpenDisposition& disposition); | 52 const WindowOpenDisposition& disposition); |
53 | 53 |
54 static void OpenForeignSessionWindows(content::WebUI* web_ui, | 54 static void OpenForeignSessionWindows(content::WebUI* web_ui, |
55 const std::string& session_string_value, | 55 const std::string& session_string_value, |
56 SessionID::id_type window_num); | 56 SessionID::id_type window_num); |
57 | 57 |
58 // Returns a pointer to the current session model associator or NULL. | 58 // Returns a pointer to the current session model associator or NULL. |
59 static sync_driver::OpenTabsUIDelegate* GetOpenTabsUIDelegate( | 59 static sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate( |
60 content::WebUI* web_ui); | 60 content::WebUI* web_ui); |
61 | 61 |
62 private: | 62 private: |
63 // sync_driver::SyncServiceObserver: | 63 // sync_driver::SyncServiceObserver: |
64 void OnStateChanged() override {} | 64 void OnStateChanged() override {} |
65 void OnSyncConfigurationCompleted() override; | 65 void OnSyncConfigurationCompleted() override; |
66 void OnForeignSessionUpdated() override; | 66 void OnForeignSessionUpdated() override; |
67 | 67 |
68 // Returns true if tab sync is enabled for this profile, otherwise false. | 68 // Returns true if tab sync is enabled for this profile, otherwise false. |
69 bool IsTabSyncEnabled(); | 69 bool IsTabSyncEnabled(); |
(...skipping 26 matching lines...) Expand all Loading... |
96 // The time at which this WebUI was created. Used to calculate how long | 96 // The time at which this WebUI was created. Used to calculate how long |
97 // the WebUI was present before the sessions data was visible. | 97 // the WebUI was present before the sessions data was visible. |
98 base::TimeTicks load_attempt_time_; | 98 base::TimeTicks load_attempt_time_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); | 100 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace browser_sync | 103 } // namespace browser_sync |
104 | 104 |
105 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ | 105 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ |
OLD | NEW |