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 7230e961ecec6f9f0eb007cf69832f03653b08fa..4f5a3e539ba37bfa10e2db252d23135151138110 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" |
@@ -76,6 +77,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/web/WebAutofillClient.h" |
#include "public/web/WebContentSettingsClient.h" |
#include "public/web/WebDOMEvent.h" |
@@ -768,6 +770,14 @@ PassOwnPtr<WebMediaPlayer> FrameLoaderClientImpl::createWebMediaPlayer( |
encryptedMedia.contentDecryptionModule())); |
} |
+PassOwnPtr<WebMediaSession> FrameLoaderClientImpl::createWebMediaSession() |
+{ |
+ if (!m_webFrame->client()) |
+ return nullptr; |
+ |
+ return adoptPtr(m_webFrame->client()->createMediaSession(m_webFrame)); |
+} |
+ |
ObjectContentType FrameLoaderClientImpl::objectContentType( |
const KURL& url, |
const String& explicitMimeType, |