| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "chrome/browser/sessions/session_service.h" | 14 #include "chrome/browser/sessions/session_service.h" |
| 15 #include "components/sync/driver/sync_service_observer.h" | 15 #include "components/sync/driver/sync_service_observer.h" |
| 16 #include "components/sync_sessions/open_tabs_ui_delegate.h" | 16 #include "components/sync_sessions/open_tabs_ui_delegate.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/browser/web_ui_message_handler.h" | 18 #include "content/public/browser/web_ui_message_handler.h" |
| 19 | 19 |
| 20 namespace sessions { | |
| 21 struct SessionTab; | |
| 22 struct SessionWindow; | |
| 23 } | |
| 24 | |
| 25 namespace syncer { | 20 namespace syncer { |
| 26 class SyncService; | 21 class SyncService; |
| 27 } | 22 } |
| 28 | 23 |
| 29 namespace user_prefs { | 24 namespace user_prefs { |
| 30 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
| 31 } | 26 } |
| 32 | 27 |
| 33 namespace browser_sync { | 28 namespace browser_sync { |
| 34 | 29 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // The time at which this WebUI was created. Used to calculate how long | 92 // The time at which this WebUI was created. Used to calculate how long |
| 98 // the WebUI was present before the sessions data was visible. | 93 // the WebUI was present before the sessions data was visible. |
| 99 base::TimeTicks load_attempt_time_; | 94 base::TimeTicks load_attempt_time_; |
| 100 | 95 |
| 101 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); | 96 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); |
| 102 }; | 97 }; |
| 103 | 98 |
| 104 } // namespace browser_sync | 99 } // namespace browser_sync |
| 105 | 100 |
| 106 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ | 101 #endif // CHROME_BROWSER_UI_WEBUI_FOREIGN_SESSION_HANDLER_H_ |
| OLD | NEW |