OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/bluetooth/bluetooth_device_chooser_controller.h" | 5 #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <unordered_set> | 9 #include <unordered_set> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/memory/ptr_util.h" |
13 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
14 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "content/browser/bluetooth/bluetooth_blocklist.h" | 18 #include "content/browser/bluetooth/bluetooth_blocklist.h" |
18 #include "content/browser/bluetooth/bluetooth_metrics.h" | 19 #include "content/browser/bluetooth/bluetooth_metrics.h" |
19 #include "content/browser/bluetooth/web_bluetooth_service_impl.h" | 20 #include "content/browser/bluetooth/web_bluetooth_service_impl.h" |
20 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/content_browser_client.h" | 22 #include "content/public/browser/content_browser_client.h" |
22 #include "content/public/browser/render_frame_host.h" | 23 #include "content/public/browser/render_frame_host.h" |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 | 616 |
616 void BluetoothDeviceChooserController::PostErrorCallback( | 617 void BluetoothDeviceChooserController::PostErrorCallback( |
617 blink::mojom::WebBluetoothResult error) { | 618 blink::mojom::WebBluetoothResult error) { |
618 if (!base::ThreadTaskRunnerHandle::Get()->PostTask( | 619 if (!base::ThreadTaskRunnerHandle::Get()->PostTask( |
619 FROM_HERE, base::Bind(error_callback_, error))) { | 620 FROM_HERE, base::Bind(error_callback_, error))) { |
620 LOG(WARNING) << "No TaskRunner."; | 621 LOG(WARNING) << "No TaskRunner."; |
621 } | 622 } |
622 } | 623 } |
623 | 624 |
624 } // namespace content | 625 } // namespace content |
OLD | NEW |