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: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 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 "modules/bluetooth/BluetoothRemoteGATTServer.h" 5 #include "modules/bluetooth/BluetoothRemoteGATTServer.h"
6 6
7 #include <utility>
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/DOMException.h" 11 #include "core/dom/DOMException.h"
11 #include "core/dom/ExceptionCode.h" 12 #include "core/dom/ExceptionCode.h"
12 #include "core/events/Event.h" 13 #include "core/events/Event.h"
13 #include "modules/bluetooth/Bluetooth.h" 14 #include "modules/bluetooth/Bluetooth.h"
14 #include "modules/bluetooth/BluetoothDevice.h" 15 #include "modules/bluetooth/BluetoothDevice.h"
15 #include "modules/bluetooth/BluetoothError.h" 16 #include "modules/bluetooth/BluetoothError.h"
16 #include "modules/bluetooth/BluetoothRemoteGATTService.h" 17 #include "modules/bluetooth/BluetoothRemoteGATTService.h"
17 #include "modules/bluetooth/BluetoothUUID.h" 18 #include "modules/bluetooth/BluetoothUUID.h"
18 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" 19 #include "mojo/public/cpp/bindings/associated_interface_ptr.h"
19 #include <utility>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 BluetoothRemoteGATTServer::BluetoothRemoteGATTServer(ExecutionContext* context, 23 BluetoothRemoteGATTServer::BluetoothRemoteGATTServer(ExecutionContext* context,
24 BluetoothDevice* device) 24 BluetoothDevice* device)
25 : ContextLifecycleObserver(context), device_(device), connected_(false) {} 25 : ContextLifecycleObserver(context), device_(device), connected_(false) {}
26 26
27 BluetoothRemoteGATTServer* BluetoothRemoteGATTServer::Create( 27 BluetoothRemoteGATTServer* BluetoothRemoteGATTServer::Create(
28 ExecutionContext* context, 28 ExecutionContext* context,
29 BluetoothDevice* device) { 29 BluetoothDevice* device) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 service->RemoteServerGetPrimaryServices( 235 service->RemoteServerGetPrimaryServices(
236 device_->id(), quantity, services_uuid, 236 device_->id(), quantity, services_uuid,
237 ConvertToBaseCallback( 237 ConvertToBaseCallback(
238 WTF::Bind(&BluetoothRemoteGATTServer::GetPrimaryServicesCallback, 238 WTF::Bind(&BluetoothRemoteGATTServer::GetPrimaryServicesCallback,
239 WrapPersistent(this), services_uuid, quantity, 239 WrapPersistent(this), services_uuid, quantity,
240 WrapPersistent(resolver)))); 240 WrapPersistent(resolver))));
241 return promise; 241 return promise;
242 } 242 }
243 243
244 } // namespace blink 244 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698