Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chrome_webusb_browser_client.h
blob2e8ab4a8751b0fdd1dfd2a9f2e79744c6d5a7d09
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.
5 #ifndef CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_
8 #include "base/macros.h"
9 #include "components/webusb/webusb_browser_client.h"
11 class GURL;
13 // Implementation of webusb::WebUsbBrowserClient.
14 // singletons appropriate for use within the Chrome application.
15 class ChromeWebUsbBrowserClient : public webusb::WebUsbBrowserClient {
16 public:
17 ChromeWebUsbBrowserClient();
18 ~ChromeWebUsbBrowserClient() override;
20 // webusb::WebUsbBrowserClient implementation
21 void OnDeviceAdded(const base::string16& product_name,
22 const GURL& landing_page,
23 const std::string& notification_id) override;
25 // webusb::WebUsbBrowserClient implementation
26 void OnDeviceRemoved(const std::string& notification_id) override;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient);
32 #endif // CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_