| Index: chrome/browser/chrome_webusb_browser_client.h
|
| diff --git a/chrome/browser/chrome_webusb_browser_client.h b/chrome/browser/chrome_webusb_browser_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..45f6bf15716aadfb446e023b7b210fdb6bf5acae
|
| --- /dev/null
|
| +++ b/chrome/browser/chrome_webusb_browser_client.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2015 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_CHROME_WEBUSB_BROWSER_CLIENT_H_
|
| +#define CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
|
| +
|
| +#include "components/webusb/webusb_browser_client.h"
|
| +
|
| +class Profile;
|
| +class GURL;
|
| +
|
| +// Implementation of webusb::WebUsbBrowserClient that opens URL.
|
| +// singletons appropriate for use within the Chrome application.
|
| +class ChromeWebUsbBrowserClient : public webusb::WebUsbBrowserClient {
|
| + public:
|
| + ChromeWebUsbBrowserClient();
|
| + ~ChromeWebUsbBrowserClient() override;
|
| +
|
| + // webusb::WebUsbBrowserClient implementation
|
| + void OnDeviceAdded(Profile* profile,
|
| + const char* product_name,
|
| + const GURL& landing_page,
|
| + const std::string& notification_id) override;
|
| +
|
| + // webusb::WebUsbBrowserClient implementation
|
| + void OnDeviceRemoved(const std::string& notification_id) override;
|
| +
|
| + // webusb::WebUsbBrowserClient implementation
|
| + void OpenURL(Profile* profile, const GURL& url) override;
|
| +
|
| + // webusb::WebUsbBrowserClient implementation
|
| + bool WebUsbNotificationEnabled() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
|
|
|