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

Side by Side Diff: content/child/bluetooth/bluetooth_dispatcher.h

Issue 1142303002: Revert of bluetooth: Move testing IPC from BluetoothDispatcher to BlinkTestRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « content/child/blink_platform_impl.h ('k') | content/child/bluetooth/bluetooth_dispatcher.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_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/child/worker_task_runner.h" 10 #include "content/child/worker_task_runner.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ThreadSafeSender* thread_safe_sender); 43 ThreadSafeSender* thread_safe_sender);
44 44
45 // IPC Send and Receiving interface, see IPC::Sender and IPC::Listener. 45 // IPC Send and Receiving interface, see IPC::Sender and IPC::Listener.
46 bool Send(IPC::Message* msg); 46 bool Send(IPC::Message* msg);
47 void OnMessageReceived(const IPC::Message& msg); 47 void OnMessageReceived(const IPC::Message& msg);
48 48
49 // Corresponding to WebBluetoothImpl methods. 49 // Corresponding to WebBluetoothImpl methods.
50 void requestDevice(blink::WebBluetoothRequestDeviceCallbacks* callbacks); 50 void requestDevice(blink::WebBluetoothRequestDeviceCallbacks* callbacks);
51 void connectGATT(const blink::WebString& device_instance_id, 51 void connectGATT(const blink::WebString& device_instance_id,
52 blink::WebBluetoothConnectGATTCallbacks* callbacks); 52 blink::WebBluetoothConnectGATTCallbacks* callbacks);
53 void SetBluetoothMockDataSetForTesting(const std::string& name);
53 54
54 // WorkerTaskRunner::Observer implementation. 55 // WorkerTaskRunner::Observer implementation.
55 void OnWorkerRunLoopStopped() override; 56 void OnWorkerRunLoopStopped() override;
56 57
57 private: 58 private:
58 // IPC Handlers, see definitions in bluetooth_messages.h. 59 // IPC Handlers, see definitions in bluetooth_messages.h.
59 void OnRequestDeviceSuccess(int thread_id, 60 void OnRequestDeviceSuccess(int thread_id,
60 int request_id, 61 int request_id,
61 const BluetoothDevice& device); 62 const BluetoothDevice& device);
62 void OnRequestDeviceError(int thread_id, 63 void OnRequestDeviceError(int thread_id,
(...skipping 14 matching lines...) Expand all
77 // Owns callback objects. 78 // Owns callback objects.
78 IDMap<blink::WebBluetoothConnectGATTCallbacks, IDMapOwnPointer> 79 IDMap<blink::WebBluetoothConnectGATTCallbacks, IDMapOwnPointer>
79 pending_connect_requests_; 80 pending_connect_requests_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); 82 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ 87 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698