summaryrefslogtreecommitdiffstats
path: root/content/renderer/renderer_blink_platform_impl.h
diff options
context:
space:
mode:
authorscheib <scheib@chromium.org>2014-11-05 15:57:26 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-05 23:57:39 +0000
commit834f2690d9f30566683e9ac7758357d6fee24856 (patch)
treeefa6501bc4cc4387b691cb774099a6c3b2bf5a3a /content/renderer/renderer_blink_platform_impl.h
parentd01c70661a5e0076947f4746fc026419675f3fa5 (diff)
downloadchromium_src-834f2690d9f30566683e9ac7758357d6fee24856.zip
chromium_src-834f2690d9f30566683e9ac7758357d6fee24856.tar.gz
chromium_src-834f2690d9f30566683e9ac7758357d6fee24856.tar.bz2
bluetooth: Initial simple mock content::WebBluetoothImpl.
In three patches the initial mock implementation of bluetooth.requestDevice is implemented across blink & content. This allows layout tests to specify the data responses the mock implemented in content should return via testRunner.SetBluetoothMockDataSet and call bluetooth.requestDevice with the expected results. crrev.com/650613005 blink::WebBluetooth & WebBluetoothError interfaces. crrev.com/702593002 content::WebBluetoothImpl & testRunner.SetBluetoothMockDataSet. crrev.com/686813003 blink::BluetoothDiscovery::requestDevice implemented. BUG=420284 Review URL: https://codereview.chromium.org/702593002 Cr-Commit-Position: refs/heads/master@{#302910}
Diffstat (limited to 'content/renderer/renderer_blink_platform_impl.h')
-rw-r--r--content/renderer/renderer_blink_platform_impl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
index dcd437d..80971ef 100644
--- a/content/renderer/renderer_blink_platform_impl.h
+++ b/content/renderer/renderer_blink_platform_impl.h
@@ -45,6 +45,7 @@ class QuotaMessageFilter;
class RendererClipboardClient;
class RenderView;
class ThreadSafeSender;
+class WebBluetoothImpl;
class WebClipboardImpl;
class WebDatabaseObserverImpl;
class WebFileSystemImpl;
@@ -147,6 +148,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
const blink::WebURL& storage_partition,
blink::WebStorageQuotaType,
blink::WebStorageQuotaCallbacks);
+ virtual blink::WebBluetooth* bluetooth();
virtual void vibrate(unsigned int milliseconds);
virtual void cancelVibration();
@@ -185,6 +187,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
return web_database_observer_impl_.get();
}
+ WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); }
+
private:
bool CheckPreparsedJsCachingEnabled() const;
@@ -241,6 +245,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
+ scoped_ptr<WebBluetoothImpl> bluetooth_;
+
IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);