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

Side by Side Diff: chrome/browser/usb/usb_chooser_bubble_controller.cc

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 unified diff | Download patch
« no previous file with comments | « chrome/browser/usb/usb_chooser_bubble_controller.h ('k') | chrome/browser/usb/usb_tab_helper.h » ('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 #include "chrome/browser/usb/usb_chooser_bubble_controller.h" 5 #include "chrome/browser/usb/usb_chooser_bubble_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 return false; 71 return false;
72 } 72 }
73 73
74 } // namespace 74 } // namespace
75 75
76 UsbChooserBubbleController::UsbChooserBubbleController( 76 UsbChooserBubbleController::UsbChooserBubbleController(
77 content::RenderFrameHost* owner, 77 content::RenderFrameHost* owner,
78 mojo::Array<device::usb::DeviceFilterPtr> device_filters, 78 mojo::Array<device::usb::DeviceFilterPtr> device_filters,
79 content::RenderFrameHost* render_frame_host, 79 content::RenderFrameHost* render_frame_host,
80 const webusb::WebUsbPermissionBubble::GetPermissionCallback& callback) 80 const device::usb::ChooserService::GetPermissionCallback& callback)
81 : ChooserBubbleController(owner), 81 : ChooserBubbleController(owner),
82 render_frame_host_(render_frame_host), 82 render_frame_host_(render_frame_host),
83 callback_(callback), 83 callback_(callback),
84 usb_service_observer_(this), 84 usb_service_observer_(this),
85 weak_factory_(this) { 85 weak_factory_(this) {
86 device::UsbService* usb_service = 86 device::UsbService* usb_service =
87 device::DeviceClient::Get()->GetUsbService(); 87 device::DeviceClient::Get()->GetUsbService();
88 if (!usb_service) 88 if (!usb_service)
89 return; 89 return;
90 90
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 } 195 }
196 if (observer()) 196 if (observer())
197 observer()->OnOptionsInitialized(); 197 observer()->OnOptionsInitialized();
198 } 198 }
199 199
200 void UsbChooserBubbleController::set_bubble_reference( 200 void UsbChooserBubbleController::set_bubble_reference(
201 BubbleReference bubble_reference) { 201 BubbleReference bubble_reference) {
202 bubble_reference_ = bubble_reference; 202 bubble_reference_ = bubble_reference;
203 } 203 }
OLDNEW
« no previous file with comments | « chrome/browser/usb/usb_chooser_bubble_controller.h ('k') | chrome/browser/usb/usb_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698