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

Side by Side Diff: content/renderer/bluetooth/web_bluetooth_impl.h

Issue 1382743002: bluetooth: Add characteristicvaluechanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
Patch Set: Address tkent's comments Created 5 years, 2 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 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 blink::WebBluetoothWriteValueCallbacks*) override; 51 blink::WebBluetoothWriteValueCallbacks*) override;
52 void startNotifications(const blink::WebString& characteristic_instance_id, 52 void startNotifications(const blink::WebString& characteristic_instance_id,
53 blink::WebBluetoothGATTCharacteristic* characteristic, 53 blink::WebBluetoothGATTCharacteristic* characteristic,
54 blink::WebBluetoothNotificationsCallbacks*) override; 54 blink::WebBluetoothNotificationsCallbacks*) override;
55 void stopNotifications(const blink::WebString& characteristic_instance_id, 55 void stopNotifications(const blink::WebString& characteristic_instance_id,
56 blink::WebBluetoothGATTCharacteristic* characteristic, 56 blink::WebBluetoothGATTCharacteristic* characteristic,
57 blink::WebBluetoothNotificationsCallbacks*) override; 57 blink::WebBluetoothNotificationsCallbacks*) override;
58 void characteristicObjectRemoved( 58 void characteristicObjectRemoved(
59 const blink::WebString& characteristic_instance_id, 59 const blink::WebString& characteristic_instance_id,
60 blink::WebBluetoothGATTCharacteristic* characteristic) override; 60 blink::WebBluetoothGATTCharacteristic* characteristic) override;
61 void registerCharacteristicObject(
62 const blink::WebString& characteristic_instance_id,
63 blink::WebBluetoothGATTCharacteristic* characteristic) override;
61 64
62 private: 65 private:
63 BluetoothDispatcher* GetDispatcher(); 66 BluetoothDispatcher* GetDispatcher();
64 67
65 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; 68 const scoped_refptr<ThreadSafeSender> thread_safe_sender_;
66 const int frame_routing_id_; 69 const int frame_routing_id_;
67 70
68 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 71 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
69 }; 72 };
70 73
71 } // namespace content 74 } // namespace content
72 75
73 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 76 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/bluetooth/bluetooth_dispatcher.cc ('k') | content/renderer/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698