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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after
4256 routing_id_, 4256 routing_id_,
4257 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4257 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4258 url, 4258 url,
4259 user_gesture)); 4259 user_gesture));
4260 } 4260 }
4261 4261
4262 blink::WebBluetooth* RenderFrameImpl::bluetooth() { 4262 blink::WebBluetooth* RenderFrameImpl::bluetooth() {
4263 // ChildThreadImpl::current() is null in some tests. 4263 // ChildThreadImpl::current() is null in some tests.
4264 if (!bluetooth_ && ChildThreadImpl::current()) { 4264 if (!bluetooth_ && ChildThreadImpl::current()) {
4265 bluetooth_.reset(new WebBluetoothImpl( 4265 bluetooth_.reset(new WebBluetoothImpl(
4266 ChildThreadImpl::current()->thread_safe_sender(), routing_id_)); 4266 GetServiceRegistry(), ChildThreadImpl::current()->thread_safe_sender(),
4267 routing_id_));
4267 } 4268 }
4268 4269
4269 return bluetooth_.get(); 4270 return bluetooth_.get();
4270 } 4271 }
4271 4272
4272 blink::WebUSBClient* RenderFrameImpl::usbClient() { 4273 blink::WebUSBClient* RenderFrameImpl::usbClient() {
4273 if (!usb_client_) 4274 if (!usb_client_)
4274 usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry())); 4275 usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry()));
4275 4276
4276 return usb_client_.get(); 4277 return usb_client_.get();
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
6013 int match_count, 6014 int match_count,
6014 int ordinal, 6015 int ordinal,
6015 const WebRect& selection_rect, 6016 const WebRect& selection_rect,
6016 bool final_status_update) { 6017 bool final_status_update) {
6017 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6018 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6018 selection_rect, ordinal, 6019 selection_rect, ordinal,
6019 final_status_update)); 6020 final_status_update));
6020 } 6021 }
6021 6022
6022 } // namespace content 6023 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698