Give names to all utility processes.
[chromium-blink-merge.git] / content / child / bluetooth / web_bluetooth_impl.h
blob5646ad3eb42b2d3ce581ec6ddab597d2ba7b7cac
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
6 #define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/platform/WebBluetooth.h"
15 namespace content {
17 class BluetoothDispatcher;
18 class ThreadSafeSender;
20 // Implementation of blink::WebBluetooth. Passes calls through to the thread
21 // specific BluetoothDispatcher.
22 class CONTENT_EXPORT WebBluetoothImpl
23 : NON_EXPORTED_BASE(public blink::WebBluetooth) {
24 public:
25 explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender);
26 ~WebBluetoothImpl();
28 // blink::WebBluetooth interface:
29 void requestDevice(
30 blink::WebBluetoothRequestDeviceCallbacks* callbacks) override;
32 // Testing interface:
33 void SetBluetoothMockDataSetForTesting(const std::string& name);
35 private:
36 BluetoothDispatcher* GetDispatcher();
38 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
40 DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
43 } // namespace content
45 #endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_