<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[206193] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/206193">206193</a></dd>
<dt>Author</dt> <dd>jer.noble@apple.com</dd>
<dt>Date</dt> <dd>2016-09-20 18:10:18 -0700 (Tue, 20 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Adopt MRMediaRemoteSetParentApplication.
https://bugs.webkit.org/show_bug.cgi?id=162259
&lt;rdar://problem/28376161&gt;

Reviewed by Anders Carlsson.

Allow MediaSessionManagerMac to retrieve the correct parent application identifier
from a PlatformMediaSession so that it can pass that identifier through to MediaRemote
via MRMediaRemoteSetParentApplication.

* Modules/webaudio/AudioContext.cpp:
(WebCore::AudioContext::sourceApplicationIdentifier):
* Modules/webaudio/AudioContext.h:
* platform/audio/PlatformMediaSession.cpp:
(WebCore::PlatformMediaSession::sourceApplicationIdentifier):
* platform/audio/PlatformMediaSession.h:
(WebCore::PlatformMediaSession::resetPlaybackSessionState): Deleted.
* platform/audio/mac/MediaSessionManagerMac.mm:
(WebCore::MediaSessionManagerMac::updateNowPlayingInfo):
* platform/mac/MediaRemoteSoftLink.cpp:
* platform/mac/MediaRemoteSoftLink.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioContextcpp">trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioContexth">trunk/Source/WebCore/Modules/webaudio/AudioContext.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementh">trunk/Source/WebCore/html/HTMLMediaElement.h</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioPlatformMediaSessioncpp">trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioPlatformMediaSessionh">trunk/Source/WebCore/platform/audio/PlatformMediaSession.h</a></li>
<li><a href="#trunkSourceWebCoreplatformaudiomacMediaSessionManagerMacmm">trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacMediaRemoteSoftLinkcpp">trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmacMediaRemoteSoftLinkh">trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/ChangeLog        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -1,3 +1,28 @@
</span><ins>+2016-09-20  Jer Noble  &lt;jer.noble@apple.com&gt;
+
+        Adopt MRMediaRemoteSetParentApplication.
+        https://bugs.webkit.org/show_bug.cgi?id=162259
+        &lt;rdar://problem/28376161&gt;
+
+        Reviewed by Anders Carlsson.
+
+        Allow MediaSessionManagerMac to retrieve the correct parent application identifier
+        from a PlatformMediaSession so that it can pass that identifier through to MediaRemote
+        via MRMediaRemoteSetParentApplication.
+
+        * Modules/webaudio/AudioContext.cpp:
+        (WebCore::AudioContext::sourceApplicationIdentifier):
+        * Modules/webaudio/AudioContext.h:
+        * platform/audio/PlatformMediaSession.cpp:
+        (WebCore::PlatformMediaSession::sourceApplicationIdentifier):
+        * platform/audio/PlatformMediaSession.h:
+        (WebCore::PlatformMediaSession::resetPlaybackSessionState): Deleted.
+        * platform/audio/mac/MediaSessionManagerMac.mm:
+        (WebCore::MediaSessionManagerMac::updateNowPlayingInfo):
+        * platform/mac/MediaRemoteSoftLink.cpp:
+        * platform/mac/MediaRemoteSoftLink.h:
+
+
</ins><span class="cx"> 2016-09-20  Nan Wang  &lt;n_wang@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: AppleVisUser: VO can't navigate web dialogs iOS10
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -48,11 +48,13 @@
</span><span class="cx"> #include &quot;EventNames.h&quot;
</span><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><span class="cx"> #include &quot;FFTFrame.h&quot;
</span><ins>+#include &quot;Frame.h&quot;
</ins><span class="cx"> #include &quot;GainNode.h&quot;
</span><span class="cx"> #include &quot;GenericEventQueue.h&quot;
</span><span class="cx"> #include &quot;HRTFDatabaseLoader.h&quot;
</span><span class="cx"> #include &quot;HRTFPanner.h&quot;
</span><span class="cx"> #include &quot;JSDOMPromise.h&quot;
</span><ins>+#include &quot;NetworkingContext.h&quot;
</ins><span class="cx"> #include &quot;OfflineAudioCompletionEvent.h&quot;
</span><span class="cx"> #include &quot;OfflineAudioDestinationNode.h&quot;
</span><span class="cx"> #include &quot;OscillatorNode.h&quot;
</span><span class="lines">@@ -353,6 +355,16 @@
</span><span class="cx">     return downcast&lt;Document&gt;(m_scriptExecutionContext);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String AudioContext::sourceApplicationIdentifier() const
+{
+    Document* document = this-&gt;document();
+    if (Frame* frame = document ? document-&gt;frame() : nullptr) {
+        if (NetworkingContext* networkingContext = frame-&gt;loader().networkingContext())
+            return networkingContext-&gt;sourceApplicationIdentifier();
+    }
+    return emptyString();
+}
+
</ins><span class="cx"> RefPtr&lt;AudioBuffer&gt; AudioContext::createBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;AudioBuffer&gt; audioBuffer = AudioBuffer::create(numberOfChannels, numberOfFrames, sampleRate);
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.h (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioContext.h        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.h        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -317,6 +317,7 @@
</span><span class="cx">     void didReceiveRemoteControlCommand(PlatformMediaSession::RemoteControlCommandType, const PlatformMediaSession::RemoteCommandArgument*) override { }
</span><span class="cx">     bool supportsSeeking() const override { return false; }
</span><span class="cx">     bool shouldOverrideBackgroundPlaybackRestriction(PlatformMediaSession::InterruptionType) const override { return false; }
</span><ins>+    String sourceApplicationIdentifier() const override;
</ins><span class="cx"> 
</span><span class="cx">     // EventTarget
</span><span class="cx">     void refEventTarget() override { ref(); }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -6518,7 +6518,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String HTMLMediaElement::mediaPlayerSourceApplicationIdentifier() const
</del><ins>+String HTMLMediaElement::sourceApplicationIdentifier() const
</ins><span class="cx"> {
</span><span class="cx">     if (Frame* frame = document().frame()) {
</span><span class="cx">         if (NetworkingContext* networkingContext = frame-&gt;loader().networkingContext())
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.h (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.h        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/html/HTMLMediaElement.h        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -627,7 +627,8 @@
</span><span class="cx"> 
</span><span class="cx">     bool mediaPlayerShouldWaitForResponseToAuthenticationChallenge(const AuthenticationChallenge&amp;) override;
</span><span class="cx">     void mediaPlayerHandlePlaybackCommand(PlatformMediaSession::RemoteControlCommandType command) override { didReceiveRemoteControlCommand(command, nullptr); }
</span><del>-    String mediaPlayerSourceApplicationIdentifier() const override;
</del><ins>+    String sourceApplicationIdentifier() const override;
+    String mediaPlayerSourceApplicationIdentifier() const override { return sourceApplicationIdentifier(); }
</ins><span class="cx">     Vector&lt;String&gt; mediaPlayerPreferredAudioCharacteristics() const override;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioPlatformMediaSessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/platform/audio/PlatformMediaSession.cpp        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -289,6 +289,11 @@
</span><span class="cx">     m_client.setShouldBufferData(PlatformMediaSessionManager::sharedManager().sessionCanLoadMedia(*this));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String PlatformMediaSession::sourceApplicationIdentifier() const
+{
+    return m_client.sourceApplicationIdentifier();
+}
+
</ins><span class="cx"> bool PlatformMediaSession::isHidden() const
</span><span class="cx"> {
</span><span class="cx">     return m_client.elementIsHidden();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioPlatformMediaSessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/PlatformMediaSession.h (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/PlatformMediaSession.h        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/platform/audio/PlatformMediaSession.h        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -166,6 +166,7 @@
</span><span class="cx"> 
</span><span class="cx">     void scheduleClientDataBufferingCheck();
</span><span class="cx">     virtual void resetPlaybackSessionState() { }
</span><ins>+    String sourceApplicationIdentifier() const;
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     PlatformMediaSessionClient&amp; client() const { return m_client; }
</span><span class="lines">@@ -224,6 +225,7 @@
</span><span class="cx">     virtual void setShouldPlayToPlaybackTarget(bool) { }
</span><span class="cx"> 
</span><span class="cx">     virtual const Document* hostingDocument() const = 0;
</span><ins>+    virtual String sourceApplicationIdentifier() const = 0;
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     virtual ~PlatformMediaSessionClient() { }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudiomacMediaSessionManagerMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.mm (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.mm        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.mm        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -112,11 +112,6 @@
</span><span class="cx">     if (!isMediaRemoteFrameworkAvailable())
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    if (!MRMediaRemoteSetCanBeNowPlayingApplication(true)) {
-        LOG(Media, &quot;MediaSessionManagerMac::updateNowPlayingInfo - MRMediaRemoteSetCanBeNowPlayingApplication(true) failed&quot;);
-        return;
-    }
-
</del><span class="cx">     const PlatformMediaSession* currentSession = this-&gt;nowPlayingEligibleSession();
</span><span class="cx"> 
</span><span class="cx">     LOG(Media, &quot;MediaSessionManagerMac::updateNowPlayingInfo - currentSession = %p&quot;, currentSession);
</span><span class="lines">@@ -123,6 +118,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!currentSession) {
</span><span class="cx">         if (m_nowPlayingActive) {
</span><ins>+            MRMediaRemoteSetCanBeNowPlayingApplication(false);
</ins><span class="cx">             LOG(Media, &quot;MediaSessionManagerMac::updateNowPlayingInfo - clearing now playing info&quot;);
</span><span class="cx">             MRMediaRemoteSetNowPlayingInfo(nullptr);
</span><span class="cx">             m_nowPlayingActive = false;
</span><span class="lines">@@ -138,6 +134,11 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (!MRMediaRemoteSetCanBeNowPlayingApplication(true)) {
+        LOG(Media, &quot;MediaSessionManagerMac::updateNowPlayingInfo - MRMediaRemoteSetCanBeNowPlayingApplication(true) failed&quot;);
+        return;
+    }
+
</ins><span class="cx">     String title = currentSession-&gt;title();
</span><span class="cx">     double duration = currentSession-&gt;duration();
</span><span class="cx">     double rate = currentSession-&gt;state() == PlatformMediaSession::Playing ? 1 : 0;
</span><span class="lines">@@ -172,6 +173,10 @@
</span><span class="cx">     LOG(Media, &quot;MediaSessionManagerMac::updateNowPlayingInfo - title = \&quot;%s\&quot;, rate = %f, duration = %f, now = %f&quot;,
</span><span class="cx">         title.utf8().data(), rate, duration, currentTime);
</span><span class="cx"> 
</span><ins>+    String parentApplication = currentSession-&gt;sourceApplicationIdentifier();
+    if (canLoad_MediaRemote_MRMediaRemoteSetParentApplication() &amp;&amp; !parentApplication.isEmpty())
+        MRMediaRemoteSetParentApplication(MRMediaRemoteGetLocalOrigin(), parentApplication.createCFString().get());
+
</ins><span class="cx">     m_nowPlayingActive = true;
</span><span class="cx">     MRPlaybackState playbackState = (currentSession-&gt;state() == PlatformMediaSession::Playing) ? kMRPlaybackStatePlaying : kMRPlaybackStatePaused;
</span><span class="cx">     MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin(MRMediaRemoteGetLocalOrigin(), playbackState, dispatch_get_main_queue(), ^(MRMediaRemoteError error) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacMediaRemoteSoftLinkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.cpp (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.cpp        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.cpp        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -42,6 +42,7 @@
</span><span class="cx"> SOFT_LINK_FUNCTION_FOR_SOURCE(WebCore, MediaRemote, MRMediaRemoteSetCanBeNowPlayingApplication, Boolean, (Boolean flag), (flag))
</span><span class="cx"> SOFT_LINK_FUNCTION_FOR_SOURCE(WebCore, MediaRemote, MRMediaRemoteSetNowPlayingInfo, void, (CFDictionaryRef info), (info))
</span><span class="cx"> SOFT_LINK_FUNCTION_FOR_SOURCE(WebCore, MediaRemote, MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin, void, (MROriginRef origin, MRPlaybackState playbackState, dispatch_queue_t replyQ, void(^completion)(MRMediaRemoteError)), (origin, playbackState, replyQ, completion))
</span><ins>+SOFT_LINK_FUNCTION_MAY_FAIL_FOR_SOURCE(WebCore, MediaRemote, MRMediaRemoteSetParentApplication, void, (MROriginRef origin, CFStringRef parentAppDisplayID), (origin, parentAppDisplayID))
</ins><span class="cx"> SOFT_LINK_CONSTANT_FOR_SOURCE(WebCore, MediaRemote, kMRMediaRemoteNowPlayingInfoTitle, CFStringRef);
</span><span class="cx"> SOFT_LINK_CONSTANT_FOR_SOURCE(WebCore, MediaRemote, kMRMediaRemoteNowPlayingInfoDuration, CFStringRef);
</span><span class="cx"> SOFT_LINK_CONSTANT_FOR_SOURCE(WebCore, MediaRemote, kMRMediaRemoteNowPlayingInfoElapsedTime, CFStringRef);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacMediaRemoteSoftLinkh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.h (206192 => 206193)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.h        2016-09-21 01:03:22 UTC (rev 206192)
+++ trunk/Source/WebCore/platform/mac/MediaRemoteSoftLink.h        2016-09-21 01:10:18 UTC (rev 206193)
</span><span class="lines">@@ -53,6 +53,8 @@
</span><span class="cx"> #define MRMediaRemoteSetNowPlayingInfo softLink_MediaRemote_MRMediaRemoteSetNowPlayingInfo
</span><span class="cx"> SOFT_LINK_FUNCTION_FOR_HEADER(WebCore, MediaRemote, MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin, void, (MROriginRef origin, MRPlaybackState playbackState, dispatch_queue_t replyQ, void(^completion)(MRMediaRemoteError)), (origin, playbackState, replyQ, completion))
</span><span class="cx"> #define MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin softLink_MediaRemote_MRMediaRemoteSetNowPlayingApplicationPlaybackStateForOrigin
</span><ins>+SOFT_LINK_FUNCTION_MAY_FAIL_FOR_HEADER(WebCore, MediaRemote, MRMediaRemoteSetParentApplication, void, (MROriginRef origin, CFStringRef parentAppDisplayID), (origin, parentAppDisplayID))
+#define MRMediaRemoteSetParentApplication softLink_MediaRemote_MRMediaRemoteSetParentApplication
</ins><span class="cx"> SOFT_LINK_CONSTANT_FOR_HEADER(WebCore, MediaRemote, kMRMediaRemoteNowPlayingInfoTitle, CFStringRef);
</span><span class="cx"> #define kMRMediaRemoteNowPlayingInfoTitle get_MediaRemote_kMRMediaRemoteNowPlayingInfoTitle()
</span><span class="cx"> SOFT_LINK_CONSTANT_FOR_HEADER(WebCore, MediaRemote, kMRMediaRemoteNowPlayingInfoDuration, CFStringRef);
</span></span></pre>
</div>
</div>

</body>
</html>