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

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

Issue 1901853002: Import supervised user dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-confirmation-page
Patch Set: Addressed comments + rebase Created 4 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_list.h" 10 #include "base/callback_list.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/scoped_observer.h" 13 #include "base/scoped_observer.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "content/public/browser/web_ui_message_handler.h" 16 #include "content/public/browser/web_ui_message_handler.h"
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 class ListValue; 20 class ListValue;
21 } 21 }
22 22
23 // Handler for the 'import existing supervised user' dialog. 23 // Handler for the 'import existing supervised user' dialog.
24 class SigninSupervisedUserImportHandler : public content::WebUIMessageHandler { 24 class SigninSupervisedUserImportHandler : public content::WebUIMessageHandler {
25 public: 25 public:
26 SigninSupervisedUserImportHandler(); 26 SigninSupervisedUserImportHandler();
27 ~SigninSupervisedUserImportHandler() override; 27 ~SigninSupervisedUserImportHandler() override;
28 28
29 void GetLocalizedValues(base::DictionaryValue* localized_strings);
30
29 // WebUIMessageHandler implementation. 31 // WebUIMessageHandler implementation.
30 void RegisterMessages() override; 32 void RegisterMessages() override;
31 33
32 private: 34 private:
33 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest, 35 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest,
34 NotAuthenticated); 36 NotAuthenticated);
35 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest, AuthError); 37 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest, AuthError);
36 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest, 38 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest,
37 CustodianIsSupervised); 39 CustodianIsSupervised);
38 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest, 40 FRIEND_TEST_ALL_PREFIXES(SigninSupervisedUserImportHandlerTest,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // The WebUI callback ID of the last in-flight async request. There is always 82 // The WebUI callback ID of the last in-flight async request. There is always
81 // only one in-flight such request. 83 // only one in-flight such request.
82 std::string webui_callback_id_; 84 std::string webui_callback_id_;
83 85
84 base::WeakPtrFactory<SigninSupervisedUserImportHandler> weak_ptr_factory_; 86 base::WeakPtrFactory<SigninSupervisedUserImportHandler> weak_ptr_factory_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(SigninSupervisedUserImportHandler); 88 DISALLOW_COPY_AND_ASSIGN(SigninSupervisedUserImportHandler);
87 }; 89 };
88 90
89 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H _ 91 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_SUPERVISED_USER_IMPORT_HANDLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698