Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / supervised_user_create_confirm_handler.h
blobd49fbee078e2e357ff9ea0c8699a3e57301c4121
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H_
8 #include "chrome/browser/ui/webui/options/options_ui.h"
10 namespace base {
11 class DictionaryValue;
14 namespace options {
16 // Handler for the confirmation dialog after successful creation of a supervised
17 // user.
18 class SupervisedUserCreateConfirmHandler : public OptionsPageUIHandler {
19 public:
20 SupervisedUserCreateConfirmHandler();
21 virtual ~SupervisedUserCreateConfirmHandler();
23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues(
25 base::DictionaryValue* localized_strings) override;
27 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() override;
30 private:
31 // Callback for the "switchToProfile" message.
32 // Opens a new window for the profile.
33 // |args| is of the form [ {string} profileFilePath ]
34 void SwitchToProfile(const base::ListValue* args);
36 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreateConfirmHandler);
39 } // namespace options
41 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_CREATE_CONFIRM_HANDLER_H_