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

Side by Side Diff: chrome/browser/ui/webui/signin/sync_confirmation_handler.h

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted a few sign changes missed in last patchset Created 4 years, 11 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_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
7
Dan Beam 2016/01/13 23:45:22 nit: #include <string>
anthonyvd 2016/01/18 21:40:08 Done.
8 #include "base/macros.h"
9 #include "components/signin/core/browser/account_tracker_service.h"
10 #include "content/public/browser/web_ui_message_handler.h"
11
12 namespace base {
13 class ListValue;
14 }
15
16 class SyncConfirmationHandler : public content::WebUIMessageHandler,
17 public AccountTrackerService::Observer {
18 public:
19 SyncConfirmationHandler();
20 ~SyncConfirmationHandler() override;
21
22 // content::WebUIMessageHandler:
23 void RegisterMessages() override;
24
25 // AccountTrackerService::Observer:
26 void OnAccountUpdated(const AccountInfo& info) override;
27
28 private:
29 // Handles "confirm" message from the page. No arguments.
30 // This message is sent when the user confirms that they want complete sign in
31 // with default sync settings.
32 void HandleConfirm(const base::ListValue* args);
33
34 // Handles "undo" message from the page. No arguments.
35 // This message is sent when the user clicks "undo" on the sync confirmation
36 // dialog, which aborts signin and prevents sync from starting.
37 void HandleUndo(const base::ListValue* args);
38
39 // Handles "initialized" message from the page. No arguments.
40 // This message is sent when the sync confirmation dialog is finished being
41 // initialized.
42 void HandleInitialized(const base::ListValue* args);
43
44 // Handles "goToSettings" message from the page. No arguments.
45 // This message is sent when the user clicks on the "Settings" link in the
46 // sync confirmation dialog, which completes sign in but takes the user to the
47 // sync settings page for configuration before starting sync.
48 void HandleGoToSettings(const base::ListValue* args);
49
50 // Sets the profile picture shown in the dialog to the image at |url|
Dan Beam 2016/01/13 23:45:22 nit: end with .
anthonyvd 2016/01/18 21:40:08 Done.
51 void SetUserImageURL(const std::string& url);
52
53 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler);
54 };
55
56 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698