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

Side by Side Diff: content/browser/bluetooth/bluetooth_dispatcher_host.h

Issue 1315093002: Implement a bluetooth picker dialog for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant include Created 5 years, 3 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 | « chrome/chrome_browser_ui.gypi ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.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 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_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 int thread_id, 144 int thread_id,
145 int request_id, 145 int request_id,
146 device::BluetoothGattService::GattErrorCode); 146 device::BluetoothGattService::GattErrorCode);
147 147
148 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic. 148 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
149 void OnWriteValueSuccess(int thread_id, int request_id); 149 void OnWriteValueSuccess(int thread_id, int request_id);
150 void OnWriteValueFailed(int thread_id, 150 void OnWriteValueFailed(int thread_id,
151 int request_id, 151 int request_id,
152 device::BluetoothGattService::GattErrorCode); 152 device::BluetoothGattService::GattErrorCode);
153 153
154 // Show help pages from the chooser dialog.
155 void ShowBluetoothOverviewLink();
156 void ShowBluetoothPairingLink();
157 void ShowBluetoothAdapterOffLink();
158
154 int render_process_id_; 159 int render_process_id_;
155 160
156 // Maps a (thread_id,request_id) to information about its requestDevice call, 161 // Maps a (thread_id,request_id) to information about its requestDevice call,
157 // including the chooser dialog. 162 // including the chooser dialog.
158 // An entry is added to this map in OnRequestDevice, and should be removed 163 // An entry is added to this map in OnRequestDevice, and should be removed
159 // again everywhere a requestDevice() reply is sent. 164 // again everywhere a requestDevice() reply is sent.
160 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_; 165 IDMap<RequestDeviceSession, IDMapOwnPointer> request_device_sessions_;
161 166
162 // Maps to get the object's parent based on it's instanceID 167 // Maps to get the object's parent based on it's instanceID
163 // Map of service_instance_id to device_instance_id. 168 // Map of service_instance_id to device_instance_id.
(...skipping 16 matching lines...) Expand all
180 185
181 // Must be last member, see base/memory/weak_ptr.h documentation 186 // Must be last member, see base/memory/weak_ptr.h documentation
182 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; 187 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_;
183 188
184 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); 189 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost);
185 }; 190 };
186 191
187 } // namespace content 192 } // namespace content
188 193
189 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 194 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698