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

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

Issue 2394423002: bluetooth: Rename blink::mojom::WebBluetoothError (Closed)
Patch Set: bluetooth: Rename blink::mojom::WebBluetoothError Created 4 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_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 <memory> 10 #include <memory>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 struct GetCharacteristicsCallback; 87 struct GetCharacteristicsCallback;
88 // WebBluetoothServiceClient methods: 88 // WebBluetoothServiceClient methods:
89 void RemoteCharacteristicValueChanged( 89 void RemoteCharacteristicValueChanged(
90 const mojo::String& characteristic_instance_id, 90 const mojo::String& characteristic_instance_id,
91 mojo::Array<uint8_t> value) override; 91 mojo::Array<uint8_t> value) override;
92 void GattServerDisconnected(const WebBluetoothDeviceId& device_id) override; 92 void GattServerDisconnected(const WebBluetoothDeviceId& device_id) override;
93 93
94 // Callbacks for WebBluetoothService calls: 94 // Callbacks for WebBluetoothService calls:
95 void OnRequestDeviceComplete( 95 void OnRequestDeviceComplete(
96 std::unique_ptr<blink::WebBluetoothRequestDeviceCallbacks> callbacks, 96 std::unique_ptr<blink::WebBluetoothRequestDeviceCallbacks> callbacks,
97 const blink::mojom::WebBluetoothError error, 97 const blink::mojom::WebBluetoothResult result,
98 blink::mojom::WebBluetoothDevicePtr device); 98 blink::mojom::WebBluetoothDevicePtr device);
99 void OnConnectComplete( 99 void OnConnectComplete(
100 std::unique_ptr<blink::WebBluetoothRemoteGATTServerConnectCallbacks> 100 std::unique_ptr<blink::WebBluetoothRemoteGATTServerConnectCallbacks>
101 callbacks, 101 callbacks,
102 blink::mojom::WebBluetoothError error); 102 blink::mojom::WebBluetoothResult result);
103 void OnGetPrimaryServicesComplete( 103 void OnGetPrimaryServicesComplete(
104 const blink::WebString& device_id, 104 const blink::WebString& device_id,
105 std::unique_ptr<blink::WebBluetoothGetPrimaryServicesCallbacks> callbacks, 105 std::unique_ptr<blink::WebBluetoothGetPrimaryServicesCallbacks> callbacks,
106 blink::mojom::WebBluetoothError error, 106 blink::mojom::WebBluetoothResult result,
107 mojo::Array<blink::mojom::WebBluetoothRemoteGATTServicePtr> services); 107 mojo::Array<blink::mojom::WebBluetoothRemoteGATTServicePtr> services);
108 void OnGetCharacteristicsComplete( 108 void OnGetCharacteristicsComplete(
109 const blink::WebString& service_instance_id, 109 const blink::WebString& service_instance_id,
110 std::unique_ptr<blink::WebBluetoothGetCharacteristicsCallbacks> callbacks, 110 std::unique_ptr<blink::WebBluetoothGetCharacteristicsCallbacks> callbacks,
111 blink::mojom::WebBluetoothError error, 111 blink::mojom::WebBluetoothResult result,
112 mojo::Array<blink::mojom::WebBluetoothRemoteGATTCharacteristicPtr> 112 mojo::Array<blink::mojom::WebBluetoothRemoteGATTCharacteristicPtr>
113 characteristics); 113 characteristics);
114 void OnReadValueComplete( 114 void OnReadValueComplete(
115 std::unique_ptr<blink::WebBluetoothReadValueCallbacks> callbacks, 115 std::unique_ptr<blink::WebBluetoothReadValueCallbacks> callbacks,
116 blink::mojom::WebBluetoothError error, 116 blink::mojom::WebBluetoothResult result,
117 mojo::Array<uint8_t> value); 117 mojo::Array<uint8_t> value);
118 void OnWriteValueComplete( 118 void OnWriteValueComplete(
119 const blink::WebVector<uint8_t>& value, 119 const blink::WebVector<uint8_t>& value,
120 std::unique_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks, 120 std::unique_ptr<blink::WebBluetoothWriteValueCallbacks> callbacks,
121 blink::mojom::WebBluetoothError error); 121 blink::mojom::WebBluetoothResult result);
122 void OnStartNotificationsComplete( 122 void OnStartNotificationsComplete(
123 std::unique_ptr<blink::WebBluetoothNotificationsCallbacks> callbacks, 123 std::unique_ptr<blink::WebBluetoothNotificationsCallbacks> callbacks,
124 blink::mojom::WebBluetoothError error); 124 blink::mojom::WebBluetoothResult result);
125 void OnStopNotificationsComplete( 125 void OnStopNotificationsComplete(
126 std::unique_ptr<blink::WebBluetoothNotificationsCallbacks> callbacks); 126 std::unique_ptr<blink::WebBluetoothNotificationsCallbacks> callbacks);
127 127
128 void DispatchCharacteristicValueChanged( 128 void DispatchCharacteristicValueChanged(
129 const std::string& characteristic_instance_id, 129 const std::string& characteristic_instance_id,
130 const std::vector<uint8_t>& value); 130 const std::vector<uint8_t>& value);
131 131
132 blink::mojom::WebBluetoothService& GetWebBluetoothService(); 132 blink::mojom::WebBluetoothService& GetWebBluetoothService();
133 shell::InterfaceProvider* const remote_interfaces_; 133 shell::InterfaceProvider* const remote_interfaces_;
134 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_; 134 blink::mojom::WebBluetoothServicePtr web_bluetooth_service_;
(...skipping 15 matching lines...) Expand all
150 150
151 // Binding associated with |web_bluetooth_service_|. 151 // Binding associated with |web_bluetooth_service_|.
152 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_; 152 mojo::AssociatedBinding<blink::mojom::WebBluetoothServiceClient> binding_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl); 154 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
155 }; 155 };
156 156
157 } // namespace content 157 } // namespace content
158 158
159 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ 159 #endif // CONTENT_RENDERER_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | content/renderer/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698