OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ |
| 7 |
| 8 #include "components/webusb/webusb_browser_client.h" |
| 9 |
| 10 class Profile; |
| 11 class GURL; |
| 12 |
| 13 // Implementation of webusb::WebUsbBrowserClient that opens URL. |
| 14 // singletons appropriate for use within the Chrome application. |
| 15 class ChromeWebUsbBrowserClient : public webusb::WebUsbBrowserClient { |
| 16 public: |
| 17 ChromeWebUsbBrowserClient(); |
| 18 ~ChromeWebUsbBrowserClient() override; |
| 19 |
| 20 // webusb::WebUsbBrowserClient implementation |
| 21 void OnDeviceAdded(Profile* profile, |
| 22 const char* product_name, |
| 23 const GURL& landing_page, |
| 24 const std::string& notification_id) override; |
| 25 |
| 26 // webusb::WebUsbBrowserClient implementation |
| 27 void OnDeviceRemoved(const std::string& notification_id) override; |
| 28 |
| 29 // webusb::WebUsbBrowserClient implementation |
| 30 void OpenURL(Profile* profile, const GURL& url) override; |
| 31 |
| 32 // webusb::WebUsbBrowserClient implementation |
| 33 bool WebUsbNotificationEnabled() override; |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ |
OLD | NEW |