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

Unified Diff: content/child/blink_platform_impl.h

Issue 699843003: bluetooth: Impl uses new WebBluetoothDevice in content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix compile failure on android. 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 side-by-side diff with in-line comments
Download patch
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index 77f52b0cf2fc2259afebad9124789340a7b97cee..a0153debae6840ad9ea5e8d8eaae1cdcee4f9623 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -35,6 +35,7 @@ namespace content {
class FlingCurveConfiguration;
class NotificationDispatcher;
class ThreadSafeSender;
+class WebBluetoothImpl;
class WebCryptoImpl;
class WebGeofencingProviderImpl;
@@ -153,12 +154,15 @@ class CONTENT_EXPORT BlinkPlatformImpl
const blink::WebWorkerRunLoop& runLoop);
virtual blink::WebCrypto* crypto();
virtual blink::WebGeofencingProvider* geofencingProvider();
+ virtual blink::WebBluetooth* bluetooth();
virtual blink::WebNotificationManager* notificationManager();
void SuspendSharedTimer();
void ResumeSharedTimer();
virtual void OnStartSharedTimer(base::TimeDelta delay) {}
+ WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); }
+
private:
static void DestroyCurrentThread(void*);
@@ -182,6 +186,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
base::ThreadLocalStorage::Slot current_thread_slot_;
WebCryptoImpl web_crypto_;
scoped_ptr<WebGeofencingProviderImpl> geofencing_provider_;
+ scoped_ptr<WebBluetoothImpl> bluetooth_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
scoped_refptr<NotificationDispatcher> notification_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698