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

Side by Side Diff: device/bluetooth/bluetooth_adapter_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « device/bluetooth/android/wrappers.cc ('k') | device/bluetooth/bluetooth_device_android.cc » ('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 "device/bluetooth/bluetooth_adapter_android.h" 5 #include "device/bluetooth/bluetooth_adapter_android.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/sequenced_task_runner.h" 13 #include "base/sequenced_task_runner.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "device/bluetooth/android/wrappers.h" 16 #include "device/bluetooth/android/wrappers.h"
17 #include "device/bluetooth/bluetooth_advertisement.h" 17 #include "device/bluetooth/bluetooth_advertisement.h"
18 #include "device/bluetooth/bluetooth_device_android.h" 18 #include "device/bluetooth/bluetooth_device_android.h"
19 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" 19 #include "device/bluetooth/bluetooth_discovery_session_outcome.h"
20 #include "jni/ChromeBluetoothAdapter_jni.h" 20 #include "jni/ChromeBluetoothAdapter_jni.h"
21 21
22 using base::android::AttachCurrentThread; 22 using base::android::AttachCurrentThread;
23 using base::android::ConvertJavaStringToUTF8; 23 using base::android::ConvertJavaStringToUTF8;
24 using base::android::JavaParamRef;
24 25
25 namespace { 26 namespace {
26 // The poll interval in ms when there is no active discovery. This 27 // The poll interval in ms when there is no active discovery. This
27 // matches the max allowed advertisting interval for connectable 28 // matches the max allowed advertisting interval for connectable
28 // devices. 29 // devices.
29 enum { kPassivePollInterval = 11000 }; 30 enum { kPassivePollInterval = 11000 };
30 // The poll interval in ms when there is an active discovery. 31 // The poll interval in ms when there is an active discovery.
31 enum { kActivePollInterval = 1000 }; 32 enum { kActivePollInterval = 1000 };
32 // The delay in ms to wait before purging devices when a scan starts. 33 // The delay in ms to wait before purging devices when a scan starts.
33 enum { kPurgeDelay = 500 }; 34 enum { kPurgeDelay = 500 };
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // TODO(scheib): Support filters crbug.com/490401 303 // TODO(scheib): Support filters crbug.com/490401
303 NOTIMPLEMENTED(); 304 NOTIMPLEMENTED();
304 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); 305 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED);
305 } 306 }
306 307
307 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( 308 void BluetoothAdapterAndroid::RemovePairingDelegateInternal(
308 device::BluetoothDevice::PairingDelegate* pairing_delegate) { 309 device::BluetoothDevice::PairingDelegate* pairing_delegate) {
309 } 310 }
310 311
311 } // namespace device 312 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/android/wrappers.cc ('k') | device/bluetooth/bluetooth_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698