<!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>[206937] trunk/Source/WebKit2</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/206937">206937</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2016-10-07 14:20:52 -0700 (Fri, 07 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Get rid of API::Session and WKSessionRef
https://bugs.webkit.org/show_bug.cgi?id=163140

Reviewed by Tim Horton.

This API is no longer used.

* CMakeLists.txt:
* Shared/API/APIObject.h:
* Shared/API/c/WKSharedAPICast.h:
* UIProcess/API/APISession.cpp: Removed.
(API::generateID): Deleted.
(API::Session::defaultSession): Deleted.
(API::Session::Session): Deleted.
(API::Session::createEphemeral): Deleted.
(API::Session::isEphemeral): Deleted.
(API::Session::getID): Deleted.
(API::Session::~Session): Deleted.
* UIProcess/API/APISession.h: Removed.
* UIProcess/API/C/WKPage.h:
* UIProcess/API/C/WKSessionRef.cpp: Removed.
(WKSessionCreate): Deleted.
(WKSessionGetTypeID): Deleted.
(WKSessionIsEphemeral): Deleted.
* UIProcess/API/C/WKSessionRef.h: Removed.
* UIProcess/WebPageProxy.h:
* UIProcess/WebProcessProxy.h:
* WebKit2.xcodeproj/project.pbxproj:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2CMakeListstxt">trunk/Source/WebKit2/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPIObjecth">trunk/Source/WebKit2/Shared/API/APIObject.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSharedAPICasth">trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPageh">trunk/Source/WebKit2/UIProcess/API/C/WKPage.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxyh">trunk/Source/WebKit2/UIProcess/WebPageProxy.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessProxyh">trunk/Source/WebKit2/UIProcess/WebProcessProxy.h</a></li>
<li><a href="#trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj">trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2UIProcessAPIAPISessioncpp">trunk/Source/WebKit2/UIProcess/API/APISession.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIAPISessionh">trunk/Source/WebKit2/UIProcess/API/APISession.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKSessionRefcpp">trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKSessionRefh">trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2CMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/CMakeLists.txt (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/CMakeLists.txt        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/CMakeLists.txt        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -414,7 +414,6 @@
</span><span class="cx">     UIProcess/API/APIPageConfiguration.cpp
</span><span class="cx">     UIProcess/API/APIProcessPoolConfiguration.cpp
</span><span class="cx">     UIProcess/API/APIOpenPanelParameters.cpp
</span><del>-    UIProcess/API/APISession.cpp
</del><span class="cx">     UIProcess/API/APISessionState.cpp
</span><span class="cx">     UIProcess/API/APIUserContentExtension.cpp
</span><span class="cx">     UIProcess/API/APIUserContentExtensionStore.cpp
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/ChangeLog        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2016-10-07  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Get rid of API::Session and WKSessionRef
+        https://bugs.webkit.org/show_bug.cgi?id=163140
+
+        Reviewed by Tim Horton.
+
+        This API is no longer used.
+
+        * CMakeLists.txt:
+        * Shared/API/APIObject.h:
+        * Shared/API/c/WKSharedAPICast.h:
+        * UIProcess/API/APISession.cpp: Removed.
+        (API::generateID): Deleted.
+        (API::Session::defaultSession): Deleted.
+        (API::Session::Session): Deleted.
+        (API::Session::createEphemeral): Deleted.
+        (API::Session::isEphemeral): Deleted.
+        (API::Session::getID): Deleted.
+        (API::Session::~Session): Deleted.
+        * UIProcess/API/APISession.h: Removed.
+        * UIProcess/API/C/WKPage.h:
+        * UIProcess/API/C/WKSessionRef.cpp: Removed.
+        (WKSessionCreate): Deleted.
+        (WKSessionGetTypeID): Deleted.
+        (WKSessionIsEphemeral): Deleted.
+        * UIProcess/API/C/WKSessionRef.h: Removed.
+        * UIProcess/WebPageProxy.h:
+        * UIProcess/WebProcessProxy.h:
+        * WebKit2.xcodeproj/project.pbxproj:
+
</ins><span class="cx"> 2016-10-07  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Move ViewGestureController files to more accurate locations
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPIObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APIObject.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APIObject.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/Shared/API/APIObject.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -144,7 +144,6 @@
</span><span class="cx">         RunJavaScriptAlertResultListener,
</span><span class="cx">         RunJavaScriptConfirmResultListener,
</span><span class="cx">         RunJavaScriptPromptResultListener,
</span><del>-        Session,
</del><span class="cx">         TextChecker,
</span><span class="cx">         UserContentController,
</span><span class="cx">         UserContentExtension,
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSharedAPICasth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -29,7 +29,6 @@
</span><span class="cx"> #include &quot;APIError.h&quot;
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><span class="cx"> #include &quot;APISecurityOrigin.h&quot;
</span><del>-#include &quot;APISession.h&quot;
</del><span class="cx"> #include &quot;APIString.h&quot;
</span><span class="cx"> #include &quot;APIURL.h&quot;
</span><span class="cx"> #include &quot;APIURLRequest.h&quot;
</span><span class="lines">@@ -112,7 +111,6 @@
</span><span class="cx"> WK_ADD_API_MAPPING(WKURLRequestRef, API::URLRequest)
</span><span class="cx"> WK_ADD_API_MAPPING(WKURLResponseRef, API::URLResponse)
</span><span class="cx"> WK_ADD_API_MAPPING(WKUserContentURLPatternRef, API::UserContentURLPattern)
</span><del>-WK_ADD_API_MAPPING(WKSessionRef, API::Session)
</del><span class="cx"> 
</span><span class="cx"> template&lt;&gt; struct APITypeInfo&lt;WKMutableArrayRef&gt; { typedef API::Array ImplType; };
</span><span class="cx"> template&lt;&gt; struct APITypeInfo&lt;WKMutableDictionaryRef&gt; { typedef API::Dictionary ImplType; };
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIAPISessioncpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/API/APISession.cpp (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/APISession.cpp        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/API/APISession.cpp        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1,86 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;APISession.h&quot;
-
-#include &quot;NetworkProcessMessages.h&quot;
-#include &quot;WebProcessPool.h&quot;
-#include &lt;wtf/RunLoop.h&gt;
-
-namespace API {
-
-static uint64_t generateID()
-{
-    ASSERT(RunLoop::isMain());
-
-    static uint64_t uniqueSessionID = WebCore::SessionID::legacyPrivateSessionID().sessionID();
-
-    return ++uniqueSessionID;
-}
-
-Session&amp; Session::defaultSession()
-{
-    ASSERT(RunLoop::isMain());
-
-    static Session* defaultSession = new Session(WebCore::SessionID::defaultSessionID());
-    return *defaultSession;
-}
-
-Session::Session()
-    : m_sessionID(generateID())
-{
-}
-
-Session::Session(WebCore::SessionID sessionID)
-    : m_sessionID(sessionID)
-{
-}
-
-Ref&lt;Session&gt; Session::createEphemeral()
-{
-    // FIXME: support creation of non-default, non-ephemeral sessions
-    return adoptRef(*new Session());
-}
-
-bool Session::isEphemeral() const
-{
-    return m_sessionID.isEphemeral();
-}
-
-WebCore::SessionID Session::getID() const
-{
-    return m_sessionID;
-}
-
-Session::~Session()
-{
-    if (m_sessionID.isEphemeral()) {
-        for (auto&amp; processPool : WebKit::WebProcessPool::allProcessPools())
-            processPool-&gt;sendToNetworkingProcess(Messages::NetworkProcess::DestroyPrivateBrowsingSession(m_sessionID));
-    }
-}
-
-} // namespace API
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIAPISessionh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/API/APISession.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/APISession.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/API/APISession.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1,52 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef APISession_h
-#define APISession_h
-
-#include &quot;APIObject.h&quot;
-#include &lt;WebCore/SessionID.h&gt;
-
-namespace API {
-
-class Session : public API::ObjectImpl&lt;API::Object::Type::Session&gt; {
-public:
-    static Ref&lt;Session&gt; createEphemeral();
-    virtual ~Session();
-
-    static Session&amp; defaultSession();
-    bool isEphemeral() const;
-    WebCore::SessionID getID() const;
-
-private:
-    Session();
-    explicit Session(WebCore::SessionID);
-
-    WebCore::SessionID m_sessionID;
-};
-
-} // namespace API
-
-#endif // APISession_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -44,7 +44,6 @@
</span><span class="cx"> #include &lt;WebKit/WKPagePolicyClient.h&gt;
</span><span class="cx"> #include &lt;WebKit/WKPageUIClient.h&gt;
</span><span class="cx"> #include &lt;WebKit/WKPageVisibilityTypes.h&gt;
</span><del>-#include &lt;WebKit/WKSessionRef.h&gt;
</del><span class="cx"> 
</span><span class="cx"> #ifndef __cplusplus
</span><span class="cx"> #include &lt;stdbool.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKSessionRefcpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1,52 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;WKSessionRef.h&quot;
-
-#include &quot;APISession.h&quot;
-#include &quot;WKAPICast.h&quot;
-
-using namespace WebKit;
-
-WKSessionRef WKSessionCreate(bool isEphemeral)
-{
-    // The implementation doesn't support non-ephemeral
-    if (!isEphemeral)
-        return nullptr;
-
-    auto session = API::Session::createEphemeral();
-    return toAPI(&amp;session.leakRef());
-}
-
-WKTypeID WKSessionGetTypeID()
-{
-    return toAPI(API::Session::APIType);
-}
-
-bool WKSessionIsEphemeral(WKSessionRef sessionRef)
-{
-    return toAPI(toImpl(sessionRef)-&gt;isEphemeral());
-}
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKSessionRefh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-/*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef WKSessionRef_h
-#define WKSessionRef_h
-
-#include &lt;WebKit/WKBase.h&gt;
-
-#ifdef __cplusplus
-extern &quot;C&quot; {
-#endif
-
-/* FIXME: We can create sessions on demand, because we hardcode the fact that all sessions but the default one are ephemeral. We'll need to create them explicitly once sessions have more configuration options. */
-WK_EXPORT WKSessionRef WKSessionCreate(bool isEphemeral);
-
-WK_EXPORT WKTypeID WKSessionGetTypeID();
-
-WK_EXPORT bool WKSessionIsEphemeral(WKSessionRef session);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* WKSessionRef_h */
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -26,7 +26,6 @@
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><del>-#include &quot;APISession.h&quot;
</del><span class="cx"> #include &quot;AssistedNodeInformation.h&quot;
</span><span class="cx"> #include &quot;AutoCorrectionCallback.h&quot;
</span><span class="cx"> #include &quot;Connection.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.h (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.h        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.h        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -25,7 +25,6 @@
</span><span class="cx"> 
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><del>-#include &quot;APISession.h&quot;
</del><span class="cx"> #include &quot;APIUserInitiatedAction.h&quot;
</span><span class="cx"> #include &quot;ChildProcessProxy.h&quot;
</span><span class="cx"> #include &quot;CustomProtocolManagerProxy.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebKit2WebKit2xcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (206936 => 206937)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2016-10-07 21:11:59 UTC (rev 206936)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj        2016-10-07 21:20:52 UTC (rev 206937)
</span><span class="lines">@@ -1076,10 +1076,6 @@
</span><span class="cx">                 75A8D2C8187CCFAB00C39C9E /* WKWebsiteDataStore.h in Headers */ = {isa = PBXBuildFile; fileRef = 75A8D2C4187CCF9F00C39C9E /* WKWebsiteDataStore.h */; settings = {ATTRIBUTES = (Public, ); }; };
</span><span class="cx">                 75A8D2C9187CCFAF00C39C9E /* WKWebsiteDataStore.mm in Sources */ = {isa = PBXBuildFile; fileRef = 75A8D2C5187CCF9F00C39C9E /* WKWebsiteDataStore.mm */; };
</span><span class="cx">                 75A8D2D6187D1C0E00C39C9E /* WKWebsiteDataStoreInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 75A8D2D4187D1C0100C39C9E /* WKWebsiteDataStoreInternal.h */; };
</span><del>-                75A8D2D7187D303A00C39C9E /* WKSessionRef.h in Headers */ = {isa = PBXBuildFile; fileRef = 75A8D2D1187D17BF00C39C9E /* WKSessionRef.h */; settings = {ATTRIBUTES = (Private, ); }; };
-                75A8D2D8187D304000C39C9E /* WKSessionRef.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 75A8D2D0187D17BF00C39C9E /* WKSessionRef.cpp */; };
-                75A8D2E1187DEC1A00C39C9E /* APISession.h in Headers */ = {isa = PBXBuildFile; fileRef = 75A8D2DE187DE87400C39C9E /* APISession.h */; };
-                75A8D2E2187DEC1E00C39C9E /* APISession.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 75A8D2DD187DE87400C39C9E /* APISession.cpp */; };
</del><span class="cx">                 762B748D120BC75C00819339 /* WKPreferencesRefPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 762B7484120BBA2D00819339 /* WKPreferencesRefPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 7A5E394A1D5BD8BE00B4B7CE /* com.macromedia.Flash Player ESR.plugin.sb in Resources */ = {isa = PBXBuildFile; fileRef = 7A5E39491D5BD8A700B4B7CE /* com.macromedia.Flash Player ESR.plugin.sb */; };
</span><span class="cx">                 7A791EFA1C7CFCF100C4C52B /* WebResourceLoadStatisticsStoreMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7A791EF91C7CFB3700C4C52B /* WebResourceLoadStatisticsStoreMessageReceiver.cpp */; };
</span><span class="lines">@@ -3163,11 +3159,7 @@
</span><span class="cx">                 753E3E0B1887397300188496 /* SessionTracker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SessionTracker.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 75A8D2C4187CCF9F00C39C9E /* WKWebsiteDataStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebsiteDataStore.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 75A8D2C5187CCF9F00C39C9E /* WKWebsiteDataStore.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebsiteDataStore.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                75A8D2D0187D17BF00C39C9E /* WKSessionRef.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKSessionRef.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
-                75A8D2D1187D17BF00C39C9E /* WKSessionRef.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKSessionRef.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 75A8D2D4187D1C0100C39C9E /* WKWebsiteDataStoreInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebsiteDataStoreInternal.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                75A8D2DD187DE87400C39C9E /* APISession.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = APISession.cpp; path = UIProcess/API/APISession.cpp; sourceTree = SOURCE_ROOT; };
-                75A8D2DE187DE87400C39C9E /* APISession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = APISession.h; path = UIProcess/API/APISession.h; sourceTree = SOURCE_ROOT; };
</del><span class="cx">                 762B7481120BBA0100819339 /* FontSmoothingLevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontSmoothingLevel.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 762B7484120BBA2D00819339 /* WKPreferencesRefPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPreferencesRefPrivate.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 7A5E39491D5BD8A700B4B7CE /* com.macromedia.Flash Player ESR.plugin.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = &quot;com.macromedia.Flash Player ESR.plugin.sb&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -6262,8 +6254,6 @@
</span><span class="cx">                                 1AFDD3141891B54000153970 /* APIPolicyClient.h */,
</span><span class="cx">                                 7CE4D21D1A4914CA00C7F152 /* APIProcessPoolConfiguration.cpp */,
</span><span class="cx">                                 7CE4D21E1A4914CA00C7F152 /* APIProcessPoolConfiguration.h */,
</span><del>-                                75A8D2DD187DE87400C39C9E /* APISession.cpp */,
-                                75A8D2DE187DE87400C39C9E /* APISession.h */,
</del><span class="cx">                                 1AFDE65F1954E9B100C48FFA /* APISessionState.cpp */,
</span><span class="cx">                                 1AFDE6601954E9B100C48FFA /* APISessionState.h */,
</span><span class="cx">                                 1A4D664718A2D91A00D82E21 /* APIUIClient.h */,
</span><span class="lines">@@ -6401,8 +6391,6 @@
</span><span class="cx">                                 518ACAE912AEE6BB00B04B83 /* WKProtectionSpaceTypes.h */,
</span><span class="cx">                                 33367638130C99DC006C9DE2 /* WKResourceCacheManager.cpp */,
</span><span class="cx">                                 33367639130C99DC006C9DE2 /* WKResourceCacheManager.h */,
</span><del>-                                75A8D2D0187D17BF00C39C9E /* WKSessionRef.cpp */,
-                                75A8D2D1187D17BF00C39C9E /* WKSessionRef.h */,
</del><span class="cx">                                 1ADE46B01954EC61000F7985 /* WKSessionStateRef.cpp */,
</span><span class="cx">                                 1ADE46B11954EC61000F7985 /* WKSessionStateRef.h */,
</span><span class="cx">                                 7C89D29D1A678554003A5FDE /* WKUserContentControllerRef.cpp */,
</span><span class="lines">@@ -7557,7 +7545,6 @@
</span><span class="cx">                                 1AFDD3151891B54000153970 /* APIPolicyClient.h in Headers */,
</span><span class="cx">                                 7CE4D2201A4914CA00C7F152 /* APIProcessPoolConfiguration.h in Headers */,
</span><span class="cx">                                 F634445612A885C8000612D8 /* APISecurityOrigin.h in Headers */,
</span><del>-                                75A8D2E1187DEC1A00C39C9E /* APISession.h in Headers */,
</del><span class="cx">                                 1AFDE6621954E9B100C48FFA /* APISessionState.h in Headers */,
</span><span class="cx">                                 1A4D664818A2D91A00D82E21 /* APIUIClient.h in Headers */,
</span><span class="cx">                                 BCDB86C11200FB97007254BE /* APIURL.h in Headers */,
</span><span class="lines">@@ -8317,7 +8304,6 @@
</span><span class="cx">                                 51CD1C5E1B3493B400142CA5 /* WKSecurityOriginRef.h in Headers */,
</span><span class="cx">                                 BC407604124FF0270068F20A /* WKSerializedScriptValue.h in Headers */,
</span><span class="cx">                                 F67DD7BA125E40D9007BDCB8 /* WKSerializedScriptValuePrivate.h in Headers */,
</span><del>-                                75A8D2D7187D303A00C39C9E /* WKSessionRef.h in Headers */,
</del><span class="cx">                                 1ADE46B31954EC61000F7985 /* WKSessionStateRef.h in Headers */,
</span><span class="cx">                                 BCDDB32B124EC2AB0048D13C /* WKSharedAPICast.h in Headers */,
</span><span class="cx">                                 513E462D1AD837560016234A /* WKSharingServicePickerDelegate.h in Headers */,
</span><span class="lines">@@ -9030,7 +9016,6 @@
</span><span class="cx">                                 1AC1336E18565D2B00F3EC05 /* APIPageHandle.cpp in Sources */,
</span><span class="cx">                                 7CE4D21F1A4914CA00C7F152 /* APIProcessPoolConfiguration.cpp in Sources */,
</span><span class="cx">                                 FED3C1DC1B447EAC00E0EB7F /* APISerializedScriptValueCocoa.mm in Sources */,
</span><del>-                                75A8D2E2187DEC1E00C39C9E /* APISession.cpp in Sources */,
</del><span class="cx">                                 1AFDE6611954E9B100C48FFA /* APISessionState.cpp in Sources */,
</span><span class="cx">                                 BCE2315E122C30CA00D5C35A /* APIURLRequest.cpp in Sources */,
</span><span class="cx">                                 BC90A1D3122DD55E00CC8C50 /* APIURLResponse.cpp in Sources */,
</span><span class="lines">@@ -9763,7 +9748,6 @@
</span><span class="cx">                                 51CD1C661B34B9DC00142CA5 /* WKSecurityOrigin.mm in Sources */,
</span><span class="cx">                                 51CD1C5D1B3493AF00142CA5 /* WKSecurityOriginRef.cpp in Sources */,
</span><span class="cx">                                 BC407603124FF0270068F20A /* WKSerializedScriptValue.cpp in Sources */,
</span><del>-                                75A8D2D8187D304000C39C9E /* WKSessionRef.cpp in Sources */,
</del><span class="cx">                                 1ADE46B21954EC61000F7985 /* WKSessionStateRef.cpp in Sources */,
</span><span class="cx">                                 513E462E1AD837560016234A /* WKSharingServicePickerDelegate.mm in Sources */,
</span><span class="cx">                                 BC407605124FF0270068F20A /* WKString.cpp in Sources */,
</span></span></pre>
</div>
</div>

</body>
</html>