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

Side by Side Diff: chrome/browser/ui/webui/history_login_handler.h

Issue 1143963002: Split NTPLoginHandler across chrome://apps and chrome://history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lower Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_HISTORY_LOGIN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_HISTORY_LOGIN_HANDLER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_ui_message_handler.h"
11
12 class ProfileInfoWatcher;
13
14 // The handler for login-related messages from chrome://history.
15 class HistoryLoginHandler : public content::WebUIMessageHandler {
16 public:
17 HistoryLoginHandler();
18 ~HistoryLoginHandler() override;
19
20 // WebUIMessageHandler implementation.
21 void RegisterMessages() override;
22
23 private:
24 // Handler for the "otherDevicesInitialized" message. No args.
25 void HandleOtherDevicesInitialized(const base::ListValue* args);
26
27 // Called by |profile_info_watcher_| on desktop if profile info changes.
28 void ProfileInfoChanged();
29
30 // Watches this web UI's profile for info changes (e.g. authenticated username
31 // changes).
32 scoped_ptr<ProfileInfoWatcher> profile_info_watcher_;
33
34 DISALLOW_COPY_AND_ASSIGN(HistoryLoginHandler);
35 };
36
37 #endif // CHROME_BROWSER_UI_WEBUI_HISTORY_LOGIN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698