| Index: chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h
|
| diff --git a/chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h b/chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c978a30c0fe7d6db4476a9d2300a2d55fec2ef45
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 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_USB_INTERNALS_USB_INTERNALS_PAGE_HANDLER_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_USB_INTERNALS_USB_INTERNALS_PAGE_HANDLER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/webui/mojo_web_ui_handler.h"
|
| +#include "chrome/browser/ui/webui/usb_internals/usb_internals.mojom.h"
|
| +#include "mojo/public/cpp/bindings/binding.h"
|
| +
|
| +class UsbInternalsPageHandler : public mojom::UsbInternalsPageHandler,
|
| + public MojoWebUIHandler {
|
| + public:
|
| + explicit UsbInternalsPageHandler(
|
| + mojom::UsbInternalsPageHandlerRequest request);
|
| + ~UsbInternalsPageHandler() override;
|
| +
|
| + // mojom::UsbInternalsPageHandler overrides:
|
| + void AddDeviceForTesting(
|
| + const std::string& name,
|
| + const std::string& serial_number,
|
| + const std::string& landing_page,
|
| + const std::string& allowed_origin,
|
| + const AddDeviceForTestingCallback& callback) override;
|
| + void RemoveDeviceForTesting(
|
| + const std::string& guid,
|
| + const RemoveDeviceForTestingCallback& callback) override;
|
| + void GetTestDevices(const GetTestDevicesCallback& callback) override;
|
| +
|
| + private:
|
| + mojo::Binding<mojom::UsbInternalsPageHandler> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UsbInternalsPageHandler);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBUI_USB_INTERNALS_USB_INTERNALS_PAGE_HANDLER_H_
|
|
|