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

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

Issue 702593002: bluetooth: Initial simple mock content::WebBluetoothImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 1 month 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 | « no previous file | content/child/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_CHILD_WEB_BLUETOOTH_IMPL_H_
no sievers 2014/11/05 21:38:22 CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
scheib 2014/11/05 21:52:43 Done.
6 #define CONTENT_CHILD_WEB_BLUETOOTH_IMPL_H_
7
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebBluetooth.h"
10 #include "third_party/WebKit/public/platform/WebBluetoothError.h"
11
12 namespace content {
13
14 // Mock implementation of blink::WebBluetooth until a more complete
15 // implementation is built out.
16 class CONTENT_EXPORT WebBluetoothImpl
17 : NON_EXPORTED_BASE(public blink::WebBluetooth) {
18 public:
19 WebBluetoothImpl();
20
21 // WebBluetooth interface:
22 void requestDevice(blink::WebBluetoothRequestDeviceCallbacks*) override;
23
24 // Testing interface:
25 void SetBluetoothMockDataSetForTesting(const std::string& name);
26
27 private:
28 enum class MockData { NOT_MOCKING, REJECT, RESOLVE };
29 MockData m_bluetoothMockDataSet;
30 blink::WebBluetoothError::ErrorType m_bluetoothRequestDeviceRejectType;
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_CHILD_WEB_BLUETOOTH_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698