Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / components / webusb / webusb_browser_client.h
bloba576f10d4f81c393f037ba8b7a655fd4da6a5eec
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 COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
6 #define COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
8 #include <string>
10 #include "base/strings/string16.h"
12 class GURL;
14 namespace webusb {
16 // Interface to allow the webusb module to make browser-process-specific
17 // calls.
18 class WebUsbBrowserClient {
19 public:
20 virtual ~WebUsbBrowserClient() {}
22 virtual void OnDeviceAdded(const base::string16& product_name,
23 const GURL& landing_page,
24 const std::string& notification_id) = 0;
26 virtual void OnDeviceRemoved(const std::string& notification_id) = 0;
29 } // namespace webusb
31 #endif // COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_