blob: 06038c45b8afd9a319ac4b39b8037ef31ebea19f [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_CREATE_CONFIRM_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_CREATE_CONFIRM_HANDLER_H_
#include "chrome/browser/ui/webui/options/options_ui.h"
namespace base {
class DictionaryValue;
}
namespace options {
// Handler for the confirmation dialog after successful creation of a managed
// user.
class ManagedUserCreateConfirmHandler : public OptionsPageUIHandler {
public:
ManagedUserCreateConfirmHandler();
virtual ~ManagedUserCreateConfirmHandler();
// OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(
base::DictionaryValue* localized_strings) OVERRIDE;
// WebUIMessageHandler implementation.
virtual void RegisterMessages() OVERRIDE;
private:
// Callback for the "switchToProfile" message.
// Opens a new window for the profile.
// |args| is of the form [ {string} profileFilePath ]
void SwitchToProfile(const base::ListValue* args);
DISALLOW_COPY_AND_ASSIGN(ManagedUserCreateConfirmHandler);
};
} // namespace options
#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_CREATE_CONFIRM_HANDLER_H_