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

Side by Side Diff: content/renderer/bluetooth/web_bluetooth_impl.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/renderer/bluetooth/web_bluetooth_impl.h" 5 #include "content/renderer/bluetooth/web_bluetooth_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 const std::string& characteristic_instance_id, 309 const std::string& characteristic_instance_id,
310 const std::vector<uint8_t>& value) { 310 const std::vector<uint8_t>& value) {
311 auto active_iter = active_characteristics_.find(characteristic_instance_id); 311 auto active_iter = active_characteristics_.find(characteristic_instance_id);
312 if (active_iter != active_characteristics_.end()) { 312 if (active_iter != active_characteristics_.end()) {
313 active_iter->second->dispatchCharacteristicValueChanged(value); 313 active_iter->second->dispatchCharacteristicValueChanged(value);
314 } 314 }
315 } 315 }
316 316
317 blink::mojom::WebBluetoothService& WebBluetoothImpl::GetWebBluetoothService() { 317 blink::mojom::WebBluetoothService& WebBluetoothImpl::GetWebBluetoothService() {
318 if (!web_bluetooth_service_) { 318 if (!web_bluetooth_service_) {
319 remote_interfaces_->GetInterface(mojo::GetProxy(&web_bluetooth_service_)); 319 remote_interfaces_->GetInterface(
320 mojo::MakeRequest(&web_bluetooth_service_));
320 // Create an associated interface ptr and pass it to the WebBluetoothService 321 // Create an associated interface ptr and pass it to the WebBluetoothService
321 // so that it can send us events without us prompting. 322 // so that it can send us events without us prompting.
322 blink::mojom::WebBluetoothServiceClientAssociatedPtrInfo ptr_info; 323 blink::mojom::WebBluetoothServiceClientAssociatedPtrInfo ptr_info;
323 binding_.Bind(&ptr_info, web_bluetooth_service_.associated_group()); 324 binding_.Bind(&ptr_info, web_bluetooth_service_.associated_group());
324 web_bluetooth_service_->SetClient(std::move(ptr_info)); 325 web_bluetooth_service_->SetClient(std::move(ptr_info));
325 } 326 }
326 return *web_bluetooth_service_; 327 return *web_bluetooth_service_;
327 } 328 }
328 329
329 } // namespace content 330 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/device_sensors/device_sensor_event_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698