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

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

Issue 1234413006: Move the Web Bluetooth implementation from child/ to renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Rebase Created 5 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
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/child/bluetooth/bluetooth_dispatcher.h" 5 #include "content/renderer/bluetooth/bluetooth_dispatcher.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "content/child/thread_safe_sender.h" 11 #include "content/child/thread_safe_sender.h"
12 #include "content/common/bluetooth/bluetooth_messages.h" 12 #include "content/common/bluetooth/bluetooth_messages.h"
13 #include "device/bluetooth/bluetooth_uuid.h" 13 #include "device/bluetooth/bluetooth_uuid.h"
14 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevic e.h" 14 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevic e.h"
15 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError .h" 15 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError .h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 WebBluetoothError error) { 378 WebBluetoothError error) {
379 DCHECK(pending_write_value_requests_.Lookup(request_id)) << request_id; 379 DCHECK(pending_write_value_requests_.Lookup(request_id)) << request_id;
380 380
381 pending_write_value_requests_.Lookup(request_id) 381 pending_write_value_requests_.Lookup(request_id)
382 ->onError(new WebBluetoothError(error)); 382 ->onError(new WebBluetoothError(error));
383 383
384 pending_write_value_requests_.Remove(request_id); 384 pending_write_value_requests_.Remove(request_id);
385 } 385 }
386 386
387 } // namespace content 387 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/bluetooth/bluetooth_dispatcher.h ('k') | content/renderer/bluetooth/bluetooth_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698