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/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 void HandleSetForeignSessionCollapsed(const base::ListValue* args); | 88 void HandleSetForeignSessionCollapsed(const base::ListValue* args); |
89 | 89 |
90 // Helper method to create JSON compatible objects from Session objects. | 90 // Helper method to create JSON compatible objects from Session objects. |
91 bool SessionWindowToValue(const ::sessions::SessionWindow& window, | 91 bool SessionWindowToValue(const ::sessions::SessionWindow& window, |
92 base::DictionaryValue* dictionary); | 92 base::DictionaryValue* dictionary); |
93 | 93 |
94 // The Registrar used to register ForeignSessionHandler for notifications. | 94 // The Registrar used to register ForeignSessionHandler for notifications. |
95 content::NotificationRegistrar registrar_; | 95 content::NotificationRegistrar registrar_; |
96 | 96 |
| 97 // The time at which this WebUI was created. Used to calculate how long |
| 98 // the WebUI was present before the sessions data was visible. |
| 99 base::TimeTicks load_attempt_time_; |
| 100 |
97 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); | 101 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); |
98 }; | 102 }; |
99 | 103 |
100 } // namespace browser_sync | 104 } // namespace browser_sync |
101 | 105 |
102 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ | 106 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ |
OLD | NEW |