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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 5 #ifndef CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 6 #define CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void characteristicObjectRemoved( 73 void characteristicObjectRemoved(
74 const blink::WebString& characteristic_instance_id, 74 const blink::WebString& characteristic_instance_id,
75 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; 75 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override;
76 void registerCharacteristicObject( 76 void registerCharacteristicObject(
77 const blink::WebString& characteristic_instance_id, 77 const blink::WebString& characteristic_instance_id,
78 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override; 78 blink::WebBluetoothRemoteGATTCharacteristic* characteristic) override;
79 79
80 private: 80 private:
81 void OnWriteValueComplete( 81 void OnWriteValueComplete(
82 const blink::WebVector<uint8_t>& value, 82 const blink::WebVector<uint8_t>& value,
83 scoped_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks, 83 std::unique_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks,
84 blink::mojom::WebBluetoothError error); 84 blink::mojom::WebBluetoothError error);
85 85
86 BluetoothDispatcher* GetDispatcher(); 86 BluetoothDispatcher* GetDispatcher();
87 87
88 blink::mojom::WebBluetoothService& GetWebBluetoothService(); 88 blink::mojom::WebBluetoothService& GetWebBluetoothService();
89 ServiceRegistry* const service_registry_; 89 ServiceRegistry* const service_registry_;
90 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_; 90 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_;
91 91
92 const scoped_refptr<ThreadSafeSender> thread_safe_sender_; 92 const scoped_refptr<ThreadSafeSender> thread_safe_sender_;
93 const int frame_routing_id_; 93 const int frame_routing_id_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 95 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
96 }; 96 };
97 97
98 } // namespace content 98 } // namespace content
99 99
100 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 100 #endif // CONTENT_RENDERER_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