<!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>[168586] 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/168586">168586</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-05-10 15:42:35 -0700 (Sat, 10 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/168578">r168578</a>.
https://bugs.webkit.org/show_bug.cgi?id=132789

Speculative rollout since this appears to break PLT3.
(Requested by kling on #webkit).

Reverted changeset:

&quot;Move Source/WebCore/workers/ code to std::unique_ptr&quot;
https://bugs.webkit.org/show_bug.cgi?id=132401
http://trac.webkit.org/changeset/168578</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp">trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSWorkerGlobalScopeCustomcpp">trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsScheduledActioncpp">trunk/Source/WebCore/bindings/js/ScheduledAction.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsScheduledActionh">trunk/Source/WebCore/bindings/js/ScheduledAction.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMTimercpp">trunk/Source/WebCore/page/DOMTimer.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMTimerh">trunk/Source/WebCore/page/DOMTimer.h</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowcpp">trunk/Source/WebCore/page/DOMWindow.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowh">trunk/Source/WebCore/page/DOMWindow.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerEventQueueh">trunk/Source/WebCore/workers/WorkerEventQueue.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerGlobalScopecpp">trunk/Source/WebCore/workers/WorkerGlobalScope.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerGlobalScopeh">trunk/Source/WebCore/workers/WorkerGlobalScope.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerLoaderProxyh">trunk/Source/WebCore/workers/WorkerLoaderProxy.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerMessagingProxyh">trunk/Source/WebCore/workers/WorkerMessagingProxy.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerRunLoopcpp">trunk/Source/WebCore/workers/WorkerRunLoop.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerRunLooph">trunk/Source/WebCore/workers/WorkerRunLoop.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerScriptLoadercpp">trunk/Source/WebCore/workers/WorkerScriptLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerScriptLoaderh">trunk/Source/WebCore/workers/WorkerScriptLoader.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerThreadcpp">trunk/Source/WebCore/workers/WorkerThread.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerThreadh">trunk/Source/WebCore/workers/WorkerThread.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/ChangeLog        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-05-10  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r168578.
+        https://bugs.webkit.org/show_bug.cgi?id=132789
+
+        Speculative rollout since this appears to break PLT3.
+        (Requested by kling on #webkit).
+
+        Reverted changeset:
+
+        &quot;Move Source/WebCore/workers/ code to std::unique_ptr&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=132401
+        http://trac.webkit.org/changeset/168578
+
</ins><span class="cx"> 2014-05-10  Darin Adler  &lt;darin@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r166853): fast/preloader/document-write.html is very flaky
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -594,7 +594,7 @@
</span><span class="cx"> JSValue JSDOMWindow::setTimeout(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx">     ContentSecurityPolicy* contentSecurityPolicy = impl().document() ? impl().document()-&gt;contentSecurityPolicy() : 0;
</span><del>-    std::unique_ptr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), contentSecurityPolicy);
</del><ins>+    OwnPtr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), contentSecurityPolicy);
</ins><span class="cx">     if (exec-&gt;hadException())
</span><span class="cx">         return jsUndefined();
</span><span class="cx"> 
</span><span class="lines">@@ -604,7 +604,7 @@
</span><span class="cx">     int delay = exec-&gt;argument(1).toInt32(exec);
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    int result = impl().setTimeout(std::move(action), delay, ec);
</del><ins>+    int result = impl().setTimeout(action.release(), delay, ec);
</ins><span class="cx">     setDOMException(exec, ec);
</span><span class="cx"> 
</span><span class="cx">     return jsNumber(result);
</span><span class="lines">@@ -613,7 +613,7 @@
</span><span class="cx"> JSValue JSDOMWindow::setInterval(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx">     ContentSecurityPolicy* contentSecurityPolicy = impl().document() ? impl().document()-&gt;contentSecurityPolicy() : 0;
</span><del>-    std::unique_ptr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), contentSecurityPolicy);
</del><ins>+    OwnPtr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), contentSecurityPolicy);
</ins><span class="cx">     if (exec-&gt;hadException())
</span><span class="cx">         return jsUndefined();
</span><span class="cx">     int delay = exec-&gt;argument(1).toInt32(exec);
</span><span class="lines">@@ -622,7 +622,7 @@
</span><span class="cx">         return jsNumber(0);
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    int result = impl().setInterval(std::move(action), delay, ec);
</del><ins>+    int result = impl().setInterval(action.release(), delay, ec);
</ins><span class="cx">     setDOMException(exec, ec);
</span><span class="cx"> 
</span><span class="cx">     return jsNumber(result);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSWorkerGlobalScopeCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -87,24 +87,24 @@
</span><span class="cx"> 
</span><span class="cx"> JSValue JSWorkerGlobalScope::setTimeout(ExecState* exec)
</span><span class="cx"> {
</span><del>-    std::unique_ptr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), impl().contentSecurityPolicy());
</del><ins>+    OwnPtr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), impl().contentSecurityPolicy());
</ins><span class="cx">     if (exec-&gt;hadException())
</span><span class="cx">         return jsUndefined();
</span><span class="cx">     if (!action)
</span><span class="cx">         return jsNumber(0);
</span><span class="cx">     int delay = exec-&gt;argument(1).toInt32(exec);
</span><del>-    return jsNumber(impl().setTimeout(std::move(action), delay));
</del><ins>+    return jsNumber(impl().setTimeout(action.release(), delay));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> JSValue JSWorkerGlobalScope::setInterval(ExecState* exec)
</span><span class="cx"> {
</span><del>-    std::unique_ptr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), impl().contentSecurityPolicy());
</del><ins>+    OwnPtr&lt;ScheduledAction&gt; action = ScheduledAction::create(exec, globalObject()-&gt;world(), impl().contentSecurityPolicy());
</ins><span class="cx">     if (exec-&gt;hadException())
</span><span class="cx">         return jsUndefined();
</span><span class="cx">     if (!action)
</span><span class="cx">         return jsNumber(0);
</span><span class="cx">     int delay = exec-&gt;argument(1).toInt32(exec);
</span><del>-    return jsNumber(impl().setInterval(std::move(action), delay));
</del><ins>+    return jsNumber(impl().setInterval(action.release(), delay));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsScheduledActioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/ScheduledAction.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/ScheduledAction.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/bindings/js/ScheduledAction.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;ScheduledAction&gt; ScheduledAction::create(ExecState* exec, DOMWrapperWorld&amp; isolatedWorld, ContentSecurityPolicy* policy)
</del><ins>+PassOwnPtr&lt;ScheduledAction&gt; ScheduledAction::create(ExecState* exec, DOMWrapperWorld&amp; isolatedWorld, ContentSecurityPolicy* policy)
</ins><span class="cx"> {
</span><span class="cx">     JSValue v = exec-&gt;argument(0);
</span><span class="cx">     CallData callData;
</span><span class="lines">@@ -56,10 +56,10 @@
</span><span class="cx">         String string = v.toString(exec)-&gt;value(exec);
</span><span class="cx">         if (exec-&gt;hadException())
</span><span class="cx">             return nullptr;
</span><del>-        return std::unique_ptr&lt;ScheduledAction&gt;(new ScheduledAction(string, isolatedWorld));
</del><ins>+        return adoptPtr(new ScheduledAction(string, isolatedWorld));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return std::unique_ptr&lt;ScheduledAction&gt;(new ScheduledAction(exec, v, isolatedWorld));
</del><ins>+    return adoptPtr(new ScheduledAction(exec, v, isolatedWorld));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> ScheduledAction::ScheduledAction(ExecState* exec, JSValue function, DOMWrapperWorld&amp; isolatedWorld)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsScheduledActionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/ScheduledAction.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/ScheduledAction.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/bindings/js/ScheduledAction.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -23,8 +23,8 @@
</span><span class="cx"> #include &quot;JSDOMBinding.h&quot;
</span><span class="cx"> #include &lt;heap/Strong.h&gt;
</span><span class="cx"> #include &lt;heap/StrongInlines.h&gt;
</span><del>-#include &lt;memory&gt;
</del><span class="cx"> #include &lt;runtime/JSCell.h&gt;
</span><ins>+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">     class ScheduledAction {
</span><span class="cx">         WTF_MAKE_NONCOPYABLE(ScheduledAction); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx">     public:
</span><del>-        static std::unique_ptr&lt;ScheduledAction&gt; create(JSC::ExecState*, DOMWrapperWorld&amp; isolatedWorld, ContentSecurityPolicy*);
</del><ins>+        static PassOwnPtr&lt;ScheduledAction&gt; create(JSC::ExecState*, DOMWrapperWorld&amp; isolatedWorld, ContentSecurityPolicy*);
</ins><span class="cx"> 
</span><span class="cx">         void execute(ScriptExecutionContext*);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMTimercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMTimer.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMTimer.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/page/DOMTimer.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -58,10 +58,10 @@
</span><span class="cx">         &amp;&amp; nestingLevel == 1; // Gestures should not be forwarded to nested timers.
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-DOMTimer::DOMTimer(ScriptExecutionContext* context, std::unique_ptr&lt;ScheduledAction&gt; action, int interval, bool singleShot)
</del><ins>+DOMTimer::DOMTimer(ScriptExecutionContext* context, PassOwnPtr&lt;ScheduledAction&gt; action, int interval, bool singleShot)
</ins><span class="cx">     : SuspendableTimer(context)
</span><span class="cx">     , m_nestingLevel(timerNestingLevel + 1)
</span><del>-    , m_action(std::move(action))
</del><ins>+    , m_action(action)
</ins><span class="cx">     , m_originalInterval(interval)
</span><span class="cx">     , m_shouldForwardUserGesture(shouldForwardUserGesture(interval, m_nestingLevel))
</span><span class="cx"> {
</span><span class="lines">@@ -83,12 +83,12 @@
</span><span class="cx">         scriptExecutionContext()-&gt;removeTimeout(m_timeoutId);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-int DOMTimer::install(ScriptExecutionContext* context, std::unique_ptr&lt;ScheduledAction&gt; action, int timeout, bool singleShot)
</del><ins>+int DOMTimer::install(ScriptExecutionContext* context, PassOwnPtr&lt;ScheduledAction&gt; action, int timeout, bool singleShot)
</ins><span class="cx"> {
</span><span class="cx">     // DOMTimer constructor links the new timer into a list of ActiveDOMObjects held by the 'context'.
</span><span class="cx">     // The timer is deleted when context is deleted (DOMTimer::contextDestroyed) or explicitly via DOMTimer::removeById(),
</span><span class="cx">     // or if it is a one-time timer and it has fired (DOMTimer::fired).
</span><del>-    DOMTimer* timer = new DOMTimer(context, std::move(action), timeout, singleShot);
</del><ins>+    DOMTimer* timer = new DOMTimer(context, action, timeout, singleShot);
</ins><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     if (context-&gt;isDocument()) {
</span><span class="cx">         Document&amp; document = toDocument(*context);
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Delete timer before executing the action for one-shot timers.
</span><del>-    ScheduledAction* action = m_action.release();
</del><ins>+    OwnPtr&lt;ScheduledAction&gt; action = m_action.release();
</ins><span class="cx"> 
</span><span class="cx">     // No access to member variables after this point.
</span><span class="cx">     delete this;
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx">     // Need to release JS objects potentially protected by ScheduledAction
</span><span class="cx">     // because they can form circular references back to the ScriptExecutionContext
</span><span class="cx">     // which will cause a memory leak.
</span><del>-    m_action = nullptr;
</del><ins>+    m_action.clear();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void DOMTimer::adjustMinimumTimerInterval(double oldMinimumTimerInterval)
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMTimerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMTimer.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMTimer.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/page/DOMTimer.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -28,7 +28,8 @@
</span><span class="cx"> #define DOMTimer_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;SuspendableTimer.h&quot;
</span><del>-#include &lt;memory&gt;
</del><ins>+#include &lt;wtf/OwnPtr.h&gt;
+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -39,7 +40,7 @@
</span><span class="cx">         virtual ~DOMTimer();
</span><span class="cx">         // Creates a new timer owned by specified ScriptExecutionContext, starts it
</span><span class="cx">         // and returns its Id.
</span><del>-        static int install(ScriptExecutionContext*, std::unique_ptr&lt;ScheduledAction&gt;, int timeout, bool singleShot);
</del><ins>+        static int install(ScriptExecutionContext*, PassOwnPtr&lt;ScheduledAction&gt;, int timeout, bool singleShot);
</ins><span class="cx">         static void removeById(ScriptExecutionContext*, int timeoutId);
</span><span class="cx"> 
</span><span class="cx">         // Adjust to a change in the ScriptExecutionContext's minimum timer interval.
</span><span class="lines">@@ -48,7 +49,7 @@
</span><span class="cx">         void adjustMinimumTimerInterval(double oldMinimumTimerInterval);
</span><span class="cx"> 
</span><span class="cx">     private:
</span><del>-        DOMTimer(ScriptExecutionContext*, std::unique_ptr&lt;ScheduledAction&gt;, int interval, bool singleShot);
</del><ins>+        DOMTimer(ScriptExecutionContext*, PassOwnPtr&lt;ScheduledAction&gt;, int interval, bool singleShot);
</ins><span class="cx">         virtual void fired() override;
</span><span class="cx"> 
</span><span class="cx">         // ActiveDOMObject
</span><span class="lines">@@ -64,7 +65,7 @@
</span><span class="cx"> 
</span><span class="cx">         int m_timeoutId;
</span><span class="cx">         int m_nestingLevel;
</span><del>-        std::unique_ptr&lt;ScheduledAction&gt; m_action;
</del><ins>+        OwnPtr&lt;ScheduledAction&gt; m_action;
</ins><span class="cx">         int m_originalInterval;
</span><span class="cx">         bool m_shouldForwardUserGesture;
</span><span class="cx">     };
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/page/DOMWindow.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -1513,14 +1513,14 @@
</span><span class="cx">     page-&gt;chrome().setWindowRect(adjustWindowRect(page, update));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-int DOMWindow::setTimeout(std::unique_ptr&lt;ScheduledAction&gt; action, int timeout, ExceptionCode&amp; ec)
</del><ins>+int DOMWindow::setTimeout(PassOwnPtr&lt;ScheduledAction&gt; action, int timeout, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     ScriptExecutionContext* context = scriptExecutionContext();
</span><span class="cx">     if (!context) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><span class="cx">         return -1;
</span><span class="cx">     }
</span><del>-    return DOMTimer::install(context, std::move(action), timeout, true);
</del><ins>+    return DOMTimer::install(context, action, timeout, true);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void DOMWindow::clearTimeout(int timeoutId)
</span><span class="lines">@@ -1547,14 +1547,14 @@
</span><span class="cx">     DOMTimer::removeById(context, timeoutId);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-int DOMWindow::setInterval(std::unique_ptr&lt;ScheduledAction&gt; action, int timeout, ExceptionCode&amp; ec)
</del><ins>+int DOMWindow::setInterval(PassOwnPtr&lt;ScheduledAction&gt; action, int timeout, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     ScriptExecutionContext* context = scriptExecutionContext();
</span><span class="cx">     if (!context) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><span class="cx">         return -1;
</span><span class="cx">     }
</span><del>-    return DOMTimer::install(context, std::move(action), timeout, false);
</del><ins>+    return DOMTimer::install(context, action, timeout, false);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void DOMWindow::clearInterval(int timeoutId)
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/page/DOMWindow.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &quot;URL.h&quot;
</span><span class="cx"> #include &quot;Supplementable.h&quot;
</span><span class="cx"> #include &lt;functional&gt;
</span><del>-#include &lt;memory&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span><span class="cx"> class ScriptCallStack;
</span><span class="lines">@@ -254,9 +253,9 @@
</span><span class="cx">         void resizeTo(float width, float height) const;
</span><span class="cx"> 
</span><span class="cx">         // Timers
</span><del>-        int setTimeout(std::unique_ptr&lt;ScheduledAction&gt;, int timeout, ExceptionCode&amp;);
</del><ins>+        int setTimeout(PassOwnPtr&lt;ScheduledAction&gt;, int timeout, ExceptionCode&amp;);
</ins><span class="cx">         void clearTimeout(int timeoutId);
</span><del>-        int setInterval(std::unique_ptr&lt;ScheduledAction&gt;, int timeout, ExceptionCode&amp;);
</del><ins>+        int setInterval(PassOwnPtr&lt;ScheduledAction&gt;, int timeout, ExceptionCode&amp;);
</ins><span class="cx">         void clearInterval(int timeoutId);
</span><span class="cx"> 
</span><span class="cx">         // WebKit animation extensions
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerEventQueueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerEventQueue.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerEventQueue.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerEventQueue.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -29,6 +29,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;EventQueue.h&quot;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><ins>+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerGlobalScopecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerGlobalScope.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerGlobalScope.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerGlobalScope.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">     : m_url(url)
</span><span class="cx">     , m_userAgent(userAgent)
</span><span class="cx">     , m_groupSettings(std::move(settings))
</span><del>-    , m_script(std::make_unique&lt;WorkerScriptController&gt;(this))
</del><ins>+    , m_script(adoptPtr(new WorkerScriptController(this)))
</ins><span class="cx">     , m_thread(thread)
</span><span class="cx"> #if ENABLE(INSPECTOR)
</span><span class="cx">     , m_workerInspectorController(std::make_unique&lt;WorkerInspectorController&gt;(*this))
</span><span class="lines">@@ -152,9 +152,9 @@
</span><span class="cx">     thread().runLoop().postTask(std::move(task));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-int WorkerGlobalScope::setTimeout(std::unique_ptr&lt;ScheduledAction&gt; action, int timeout)
</del><ins>+int WorkerGlobalScope::setTimeout(PassOwnPtr&lt;ScheduledAction&gt; action, int timeout)
</ins><span class="cx"> {
</span><del>-    return DOMTimer::install(scriptExecutionContext(), std::move(action), timeout, true);
</del><ins>+    return DOMTimer::install(scriptExecutionContext(), action, timeout, true);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WorkerGlobalScope::clearTimeout(int timeoutId)
</span><span class="lines">@@ -162,9 +162,9 @@
</span><span class="cx">     DOMTimer::removeById(scriptExecutionContext(), timeoutId);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-int WorkerGlobalScope::setInterval(std::unique_ptr&lt;ScheduledAction&gt; action, int timeout)
</del><ins>+int WorkerGlobalScope::setInterval(PassOwnPtr&lt;ScheduledAction&gt; action, int timeout)
</ins><span class="cx"> {
</span><del>-    return DOMTimer::install(scriptExecutionContext(), std::move(action), timeout, false);
</del><ins>+    return DOMTimer::install(scriptExecutionContext(), action, timeout, false);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WorkerGlobalScope::clearInterval(int timeoutId)
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerGlobalScopeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerGlobalScope.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerGlobalScope.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerGlobalScope.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -35,9 +35,9 @@
</span><span class="cx"> #include &quot;ScriptExecutionContext.h&quot;
</span><span class="cx"> #include &quot;WorkerEventQueue.h&quot;
</span><span class="cx"> #include &quot;WorkerScriptController.h&quot;
</span><del>-#include &lt;memory&gt;
</del><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><ins>+#include &lt;wtf/OwnPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx">         virtual void disableEval(const String&amp; errorMessage) override;
</span><span class="cx"> 
</span><span class="cx">         WorkerScriptController* script() { return m_script.get(); }
</span><del>-        void clearScript() { m_script = nullptr; }
</del><ins>+        void clearScript() { m_script.clear(); }
</ins><span class="cx"> 
</span><span class="cx">         WorkerThread&amp; thread() const { return m_thread; }
</span><span class="cx"> 
</span><span class="lines">@@ -94,9 +94,9 @@
</span><span class="cx">         WorkerNavigator* navigator() const;
</span><span class="cx"> 
</span><span class="cx">         // Timers
</span><del>-        int setTimeout(std::unique_ptr&lt;ScheduledAction&gt;, int timeout);
</del><ins>+        int setTimeout(PassOwnPtr&lt;ScheduledAction&gt;, int timeout);
</ins><span class="cx">         void clearTimeout(int timeoutId);
</span><del>-        int setInterval(std::unique_ptr&lt;ScheduledAction&gt;, int timeout);
</del><ins>+        int setInterval(PassOwnPtr&lt;ScheduledAction&gt;, int timeout);
</ins><span class="cx">         void clearInterval(int timeoutId);
</span><span class="cx"> 
</span><span class="cx">         virtual bool isContextThread() const override;
</span><span class="lines">@@ -167,7 +167,7 @@
</span><span class="cx">         mutable RefPtr&lt;WorkerLocation&gt; m_location;
</span><span class="cx">         mutable RefPtr&lt;WorkerNavigator&gt; m_navigator;
</span><span class="cx"> 
</span><del>-        std::unique_ptr&lt;WorkerScriptController&gt; m_script;
</del><ins>+        OwnPtr&lt;WorkerScriptController&gt; m_script;
</ins><span class="cx">         WorkerThread&amp; m_thread;
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(INSPECTOR)
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerLoaderProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerLoaderProxy.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerLoaderProxy.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerLoaderProxy.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ScriptExecutionContext.h&quot;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><ins>+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerMessagingProxyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerMessagingProxy.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerMessagingProxy.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerMessagingProxy.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -34,6 +34,7 @@
</span><span class="cx"> #include &lt;memory&gt;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><ins>+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerRunLoopcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerRunLoop.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerRunLoop.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerRunLoop.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WorkerRunLoop::WorkerRunLoop()
</span><del>-    : m_sharedTimer(std::make_unique&lt;WorkerSharedTimer&gt;())
</del><ins>+    : m_sharedTimer(adoptPtr(new WorkerSharedTimer))
</ins><span class="cx">     , m_nestedCount(0)
</span><span class="cx">     , m_uniqueId(0)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerRunLooph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerRunLoop.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerRunLoop.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerRunLoop.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -32,8 +32,9 @@
</span><span class="cx"> #define WorkerRunLoop_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ScriptExecutionContext.h&quot;
</span><del>-#include &lt;memory&gt;
</del><span class="cx"> #include &lt;wtf/MessageQueue.h&gt;
</span><ins>+#include &lt;wtf/OwnPtr.h&gt;
+#include &lt;wtf/PassOwnPtr.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -89,7 +90,7 @@
</span><span class="cx">         void runCleanupTasks(WorkerGlobalScope*);
</span><span class="cx"> 
</span><span class="cx">         MessageQueue&lt;Task&gt; m_messageQueue;
</span><del>-        std::unique_ptr&lt;WorkerSharedTimer&gt; m_sharedTimer;
</del><ins>+        OwnPtr&lt;WorkerSharedTimer&gt; m_sharedTimer;
</ins><span class="cx">         int m_nestedCount;
</span><span class="cx">         unsigned long m_uniqueId;
</span><span class="cx">     };
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerScriptLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerScriptLoader.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerScriptLoader.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerScriptLoader.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -37,6 +37,7 @@
</span><span class="cx"> #include &quot;WorkerGlobalScope.h&quot;
</span><span class="cx"> #include &quot;WorkerScriptLoaderClient.h&quot;
</span><span class="cx"> #include &quot;WorkerThreadableLoader.h&quot;
</span><ins>+#include &lt;wtf/OwnPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/Ref.h&gt;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -58,7 +59,7 @@
</span><span class="cx"> {
</span><span class="cx">     m_url = url;
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;ResourceRequest&gt; request(createResourceRequest());
</del><ins>+    OwnPtr&lt;ResourceRequest&gt; request(createResourceRequest());
</ins><span class="cx">     if (!request)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -78,7 +79,7 @@
</span><span class="cx">     m_client = client;
</span><span class="cx">     m_url = url;
</span><span class="cx"> 
</span><del>-    std::unique_ptr&lt;ResourceRequest&gt; request(createResourceRequest());
</del><ins>+    OwnPtr&lt;ResourceRequest&gt; request(createResourceRequest());
</ins><span class="cx">     if (!request)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -98,11 +99,11 @@
</span><span class="cx">     return m_responseURL;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-std::unique_ptr&lt;ResourceRequest&gt; WorkerScriptLoader::createResourceRequest()
</del><ins>+PassOwnPtr&lt;ResourceRequest&gt; WorkerScriptLoader::createResourceRequest()
</ins><span class="cx"> {
</span><del>-    auto request = std::make_unique&lt;ResourceRequest&gt;(m_url);
</del><ins>+    OwnPtr&lt;ResourceRequest&gt; request = adoptPtr(new ResourceRequest(m_url));
</ins><span class="cx">     request-&gt;setHTTPMethod(&quot;GET&quot;);
</span><del>-    return std::move(request);
</del><ins>+    return request.release();
</ins><span class="cx"> }
</span><span class="cx">     
</span><span class="cx"> void WorkerScriptLoader::didReceiveResponse(unsigned long identifier, const ResourceResponse&amp; response)
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerScriptLoaderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerScriptLoader.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerScriptLoader.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerScriptLoader.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> #include &quot;ResourceRequest.h&quot;
</span><span class="cx"> #include &quot;ThreadableLoader.h&quot;
</span><span class="cx"> #include &quot;ThreadableLoaderClient.h&quot;
</span><del>-#include &lt;memory&gt;
</del><ins>+
</ins><span class="cx"> #include &lt;wtf/FastMalloc.h&gt;
</span><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">         WorkerScriptLoader();
</span><span class="cx">         ~WorkerScriptLoader();
</span><span class="cx"> 
</span><del>-        std::unique_ptr&lt;ResourceRequest&gt; createResourceRequest();
</del><ins>+        PassOwnPtr&lt;ResourceRequest&gt; createResourceRequest();
</ins><span class="cx">         void notifyFinished();
</span><span class="cx"> 
</span><span class="cx">         WorkerScriptLoaderClient* m_client;
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerThreadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerThread.cpp (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerThread.cpp        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerThread.cpp        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -79,7 +79,10 @@
</span><span class="cx"> struct WorkerThreadStartupData {
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(WorkerThreadStartupData); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    WorkerThreadStartupData(const URL&amp; scriptURL, const String&amp; userAgent, const GroupSettings*, const String&amp; sourceCode, WorkerThreadStartMode, const String&amp; contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin);
</del><ins>+    static PassOwnPtr&lt;WorkerThreadStartupData&gt; create(const URL&amp; scriptURL, const String&amp; userAgent, const GroupSettings* settings, const String&amp; sourceCode, WorkerThreadStartMode startMode, const String&amp; contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin)
+    {
+        return adoptPtr(new WorkerThreadStartupData(scriptURL, userAgent, settings, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin));
+    }
</ins><span class="cx"> 
</span><span class="cx">     URL m_scriptURL;
</span><span class="cx">     String m_userAgent;
</span><span class="lines">@@ -89,6 +92,8 @@
</span><span class="cx">     String m_contentSecurityPolicy;
</span><span class="cx">     ContentSecurityPolicy::HeaderType m_contentSecurityPolicyType;
</span><span class="cx">     RefPtr&lt;SecurityOrigin&gt; m_topOrigin;
</span><ins>+private:
+    WorkerThreadStartupData(const URL&amp; scriptURL, const String&amp; userAgent, const GroupSettings*, const String&amp; sourceCode, WorkerThreadStartMode, const String&amp; contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WorkerThreadStartupData::WorkerThreadStartupData(const URL&amp; scriptURL, const String&amp; userAgent, const GroupSettings* settings, const String&amp; sourceCode, WorkerThreadStartMode startMode, const String&amp; contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin)
</span><span class="lines">@@ -113,7 +118,7 @@
</span><span class="cx">     : m_threadID(0)
</span><span class="cx">     , m_workerLoaderProxy(workerLoaderProxy)
</span><span class="cx">     , m_workerReportingProxy(workerReportingProxy)
</span><del>-    , m_startupData(std::make_unique&lt;WorkerThreadStartupData&gt;(scriptURL, userAgent, settings, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin))
</del><ins>+    , m_startupData(WorkerThreadStartupData::create(scriptURL, userAgent, settings, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin))
</ins><span class="cx"> #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
</span><span class="cx">     , m_notificationClient(0)
</span><span class="cx"> #endif
</span><span class="lines">@@ -175,7 +180,7 @@
</span><span class="cx">     // Free the startup data to cause its member variable deref's happen on the worker's thread (since
</span><span class="cx">     // all ref/derefs of these objects are happening on the thread at this point). Note that
</span><span class="cx">     // WorkerThread::~WorkerThread happens on a different thread where it was created.
</span><del>-    m_startupData = nullptr;
</del><ins>+    m_startupData.clear();
</ins><span class="cx"> 
</span><span class="cx">     runEventLoop();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerThreadh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerThread.h (168585 => 168586)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerThread.h        2014-05-10 22:41:17 UTC (rev 168585)
+++ trunk/Source/WebCore/workers/WorkerThread.h        2014-05-10 22:42:35 UTC (rev 168586)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx"> #include &quot;ContentSecurityPolicy.h&quot;
</span><span class="cx"> #include &quot;GroupSettings.h&quot;
</span><span class="cx"> #include &quot;WorkerRunLoop.h&quot;
</span><del>-#include &lt;memory&gt;
</del><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><ins>+#include &lt;wtf/OwnPtr.h&gt;
</ins><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">         RefPtr&lt;WorkerGlobalScope&gt; m_workerGlobalScope;
</span><span class="cx">         Mutex m_threadCreationMutex;
</span><span class="cx"> 
</span><del>-        std::unique_ptr&lt;WorkerThreadStartupData&gt; m_startupData;
</del><ins>+        OwnPtr&lt;WorkerThreadStartupData&gt; m_startupData;
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
</span><span class="cx">         NotificationClient* m_notificationClient;
</span></span></pre>
</div>
</div>

</body>
</html>