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_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 // Invalid value, used to note that we don't have a tab or window number. | 27 // Invalid value, used to note that we don't have a tab or window number. |
28 static const int kInvalidId = -1; | 28 static const int kInvalidId = -1; |
29 | 29 |
30 // WebUIMessageHandler implementation. | 30 // WebUIMessageHandler implementation. |
31 virtual void RegisterMessages() OVERRIDE; | 31 virtual void RegisterMessages() OVERRIDE; |
32 | 32 |
33 ForeignSessionHandler(); | 33 ForeignSessionHandler(); |
34 virtual ~ForeignSessionHandler() {} | 34 virtual ~ForeignSessionHandler() {} |
35 | 35 |
36 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
37 | 37 |
38 static void OpenForeignSessionTab(content::WebUI* web_ui, | 38 static void OpenForeignSessionTab(content::WebUI* web_ui, |
39 const std::string& session_string_value, | 39 const std::string& session_string_value, |
40 SessionID::id_type window_num, | 40 SessionID::id_type window_num, |
41 SessionID::id_type tab_id, | 41 SessionID::id_type tab_id, |
42 const WindowOpenDisposition& disposition); | 42 const WindowOpenDisposition& disposition); |
43 | 43 |
44 static void OpenForeignSessionWindows(content::WebUI* web_ui, | 44 static void OpenForeignSessionWindows(content::WebUI* web_ui, |
45 const std::string& session_string_value, | 45 const std::string& session_string_value, |
46 SessionID::id_type window_num); | 46 SessionID::id_type window_num); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // The Registrar used to register ForeignSessionHandler for notifications. | 92 // The Registrar used to register ForeignSessionHandler for notifications. |
93 content::NotificationRegistrar registrar_; | 93 content::NotificationRegistrar registrar_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); | 95 DISALLOW_COPY_AND_ASSIGN(ForeignSessionHandler); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace browser_sync | 98 } // namespace browser_sync |
99 | 99 |
100 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ | 100 #endif // CHROME_BROWSER_UI_WEBUI_NTP_FOREIGN_SESSION_HANDLER_H_ |
OLD | NEW |