Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/ui/webui/ntp/foreign_session_handler.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/ntp/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698