Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
index 4a6c43417c0624b63a46876258a7f5c6227dedba..ad49f32b1346af6dbbd8e415b69665bf2a0ba5d7 100644 |
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp |
@@ -56,6 +56,7 @@ |
#include "modules/device_orientation/DeviceOrientationController.h" |
#include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
#include "modules/gamepad/NavigatorGamepad.h" |
+#include "modules/mediasession/MediaSession.h" |
#include "modules/serviceworkers/NavigatorServiceWorker.h" |
#include "modules/storage/DOMWindowStorageController.h" |
#include "modules/vr/NavigatorVRDevice.h" |
@@ -74,6 +75,7 @@ |
#include "public/platform/WebURL.h" |
#include "public/platform/WebURLError.h" |
#include "public/platform/WebVector.h" |
+#include "public/platform/modules/mediasession/WebMediaSession.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h" |
#include "public/web/WebAutofillClient.h" |
@@ -781,6 +783,14 @@ PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( |
encryptedMedia.contentDecryptionModule())); |
} |
+PassOwnPtr<WebMediaSession> FrameLoaderClientImpl::createWebMediaSession() |
+{ |
+ if (!m_webFrame->client()) |
+ return nullptr; |
philipj_slow
2015/10/19 14:22:55
Note to the future: If this is actually reachable,
|
+ |
+ return adoptPtr(m_webFrame->client()->createMediaSession()); |
+} |
+ |
ObjectContentType FrameLoaderClientImpl::objectContentType( |
const KURL& url, |
const String& explicitMimeType, |