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

Unified Diff: chrome/browser/usb/web_usb_chooser_service.h

Issue 1742753002: Rename web_usb_permission_bubble.cc/h and webusb_permission_bubble.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/usb/usb_tab_helper.cc ('k') | chrome/browser/usb/web_usb_chooser_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/usb/web_usb_chooser_service.h
diff --git a/chrome/browser/usb/web_usb_permission_bubble.h b/chrome/browser/usb/web_usb_chooser_service.h
similarity index 53%
rename from chrome/browser/usb/web_usb_permission_bubble.h
rename to chrome/browser/usb/web_usb_chooser_service.h
index d55ffc6fcaad984490444decd7be438b4b71d0e0..e0cffe526697ee3e674cfc60ca51fd14468a881c 100644
--- a/chrome/browser/usb/web_usb_permission_bubble.h
+++ b/chrome/browser/usb/web_usb_chooser_service.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_USB_WEB_USB_PERMISSION_BUBBLE_H_
-#define CHROME_BROWSER_USB_WEB_USB_PERMISSION_BUBBLE_H_
+#ifndef CHROME_BROWSER_USB_WEB_USB_CHOOSER_SERVICE_H_
+#define CHROME_BROWSER_USB_WEB_USB_CHOOSER_SERVICE_H_
#include <vector>
#include "base/macros.h"
#include "components/bubble/bubble_reference.h"
-#include "components/webusb/public/interfaces/webusb_permission_bubble.mojom.h"
+#include "device/usb/public/interfaces/chooser_service.mojom.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -22,27 +22,27 @@ namespace device {
class UsbDevice;
}
-// Implementation of the public webusb::WebUsbPermissionBubble interface.
+// Implementation of the public device::usb::ChooserService interface.
// This interface can be used by a webpage to request permission from user
// to access a certain device.
-class ChromeWebUsbPermissionBubble : public webusb::WebUsbPermissionBubble {
+class WebUsbChooserService : public device::usb::ChooserService {
public:
- explicit ChromeWebUsbPermissionBubble(
- content::RenderFrameHost* render_frame_host);
+ explicit WebUsbChooserService(content::RenderFrameHost* render_frame_host);
- ~ChromeWebUsbPermissionBubble() override;
+ ~WebUsbChooserService() override;
- // webusb::WebUsbPermissionBubble:
+ // device::usb::ChooserService:
void GetPermission(mojo::Array<device::usb::DeviceFilterPtr> device_filters,
const GetPermissionCallback& callback) override;
- void Bind(mojo::InterfaceRequest<webusb::WebUsbPermissionBubble> request);
+
+ void Bind(mojo::InterfaceRequest<device::usb::ChooserService> request);
private:
content::RenderFrameHost* const render_frame_host_;
- mojo::BindingSet<webusb::WebUsbPermissionBubble> bindings_;
+ mojo::BindingSet<device::usb::ChooserService> bindings_;
std::vector<BubbleReference> bubbles_;
- DISALLOW_COPY_AND_ASSIGN(ChromeWebUsbPermissionBubble);
+ DISALLOW_COPY_AND_ASSIGN(WebUsbChooserService);
};
-#endif // CHROME_BROWSER_USB_WEB_USB_PERMISSION_BUBBLE_H_
+#endif // CHROME_BROWSER_USB_WEB_USB_CHOOSER_SERVICE_H_
« no previous file with comments | « chrome/browser/usb/usb_tab_helper.cc ('k') | chrome/browser/usb/web_usb_chooser_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698