Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/browser/usb/web_usb_browser_client.h

Issue 2146663002: Move //components/webusb/ to //chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix variable names Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_USB_WEB_USB_BROWSER_CLIENT_H_
6 #define COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_USB_WEB_USB_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 11
12 class GURL; 12 class GURL;
13 13
14 namespace webusb {
15
16 // Interface to allow the webusb module to make browser-process-specific 14 // Interface to allow the webusb module to make browser-process-specific
17 // calls. 15 // calls.
18 class WebUsbBrowserClient { 16 class WebUsbBrowserClient {
19 public: 17 public:
20 virtual ~WebUsbBrowserClient() {} 18 virtual ~WebUsbBrowserClient() {}
21 19
22 virtual void OnDeviceAdded(const base::string16& product_name, 20 virtual void OnDeviceAdded(const base::string16& product_name,
23 const GURL& landing_page, 21 const GURL& landing_page,
24 const std::string& notification_id) = 0; 22 const std::string& notification_id) = 0;
25 23
26 virtual void OnDeviceRemoved(const std::string& notification_id) = 0; 24 virtual void OnDeviceRemoved(const std::string& notification_id) = 0;
27 }; 25 };
28 26
29 } // namespace webusb 27 #endif // CHROME_BROWSER_USB_WEB_USB_BROWSER_CLIENT_H_
30
31 #endif // COMPONENTS_WEBUSB_WEBUSB_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698