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

Side by Side Diff: chrome/browser/chrome_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
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_web_usb_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_WEB_USB_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_WEB_USB_BROWSER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/webusb/webusb_browser_client.h" 9 #include "chrome/browser/usb/web_usb_browser_client.h"
10 10
11 class GURL; 11 class GURL;
12 12
13 // Implementation of webusb::WebUsbBrowserClient. 13 // Implementation of WebUsbBrowserClient.
14 // singletons appropriate for use within the Chrome application. 14 // singletons appropriate for use within the Chrome application.
15 class ChromeWebUsbBrowserClient : public webusb::WebUsbBrowserClient { 15 class ChromeWebUsbBrowserClient : public WebUsbBrowserClient {
jam 2016/07/12 21:08:45 do we still need this abstraction? i see it's used
juncai 2016/07/12 22:28:34 Removed the abstraction. Done.
jam 2016/07/13 16:54:57 The interface is gone, but we still have WebUsbBro
juncai 2016/07/15 17:50:07 Done.
16 public: 16 public:
17 ChromeWebUsbBrowserClient(); 17 ChromeWebUsbBrowserClient();
18 ~ChromeWebUsbBrowserClient() override; 18 ~ChromeWebUsbBrowserClient() override;
19 19
20 // webusb::WebUsbBrowserClient implementation 20 // WebUsbBrowserClient:
21 void OnDeviceAdded(const base::string16& product_name, 21 void OnDeviceAdded(const base::string16& product_name,
22 const GURL& landing_page, 22 const GURL& landing_page,
23 const std::string& notification_id) override; 23 const std::string& notification_id) override;
24
25 // webusb::WebUsbBrowserClient implementation
26 void OnDeviceRemoved(const std::string& notification_id) override; 24 void OnDeviceRemoved(const std::string& notification_id) override;
27 25
28 private: 26 private:
29 DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient); 27 DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbBrowserClient);
30 }; 28 };
31 29
32 #endif // CHROME_BROWSER_CHROME_WEBUSB_BROWSER_CLIENT_H_ 30 #endif // CHROME_BROWSER_CHROME_WEB_USB_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_web_usb_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698