chromium/chrome/browser/ui/webui/ash/emulator/device_emulator_ui.h

// Copyright 2015 The Chromium Authors
// 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_ASH_EMULATOR_DEVICE_EMULATOR_UI_H_
#define CHROME_BROWSER_UI_WEBUI_ASH_EMULATOR_DEVICE_EMULATOR_UI_H_

#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/webui_config.h"
#include "content/public/common/url_constants.h"

namespace ash {

class DeviceEmulatorUI;

// WebUIConfig for chrome://device-emulator
class DeviceEmulatorUIConfig
    : public content::DefaultWebUIConfig<DeviceEmulatorUI> {
 public:
  DeviceEmulatorUIConfig()
      : DefaultWebUIConfig(content::kChromeUIScheme,
                           chrome::kChromeUIDeviceEmulatorHost) {}

  bool IsWebUIEnabled(content::BrowserContext* browser_context) override;
};

// The WebUI handler for chrome://device-emulator
class DeviceEmulatorUI : public content::WebUIController {
 public:
  explicit DeviceEmulatorUI(content::WebUI* web_ui);

  DeviceEmulatorUI(const DeviceEmulatorUI&) = delete;
  DeviceEmulatorUI& operator=(const DeviceEmulatorUI&) = delete;

  ~DeviceEmulatorUI() override;
};

}  // namespace ash

#endif  // CHROME_BROWSER_UI_WEBUI_ASH_EMULATOR_DEVICE_EMULATOR_UI_H_