<!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>[200156] 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/200156">200156</a></dd>
<dt>Author</dt> <dd>beidson@apple.com</dd>
<dt>Date</dt> <dd>2016-04-27 15:53:52 -0700 (Wed, 27 Apr 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Modernize platform/CrossThreadCopier.h style.
https://bugs.webkit.org/show_bug.cgi?id=157106

Reviewed by Alex Christensen.

No new tests (No change in behavior).

* platform/CrossThreadCopier.h:
(WebCore::CrossThreadCopierPassThrough::copy):
(WebCore::AllowCrossThreadAccessWrapper::AllowCrossThreadAccessWrapper):
(WebCore::AllowCrossThreadAccessWrapper::value):
(WebCore::AllowCrossThreadAccess):
(WebCore::AllowAccessLaterWrapper::AllowAccessLaterWrapper):
(WebCore::AllowAccessLaterWrapper::value):
(WebCore::AllowAccessLater):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformCrossThreadCopierh">trunk/Source/WebCore/platform/CrossThreadCopier.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (200155 => 200156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-04-27 22:50:02 UTC (rev 200155)
+++ trunk/Source/WebCore/ChangeLog        2016-04-27 22:53:52 UTC (rev 200156)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2016-04-27  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Modernize platform/CrossThreadCopier.h style.
+        https://bugs.webkit.org/show_bug.cgi?id=157106
+
+        Reviewed by Alex Christensen.
+
+        No new tests (No change in behavior).
+
+        * platform/CrossThreadCopier.h:
+        (WebCore::CrossThreadCopierPassThrough::copy):
+        (WebCore::AllowCrossThreadAccessWrapper::AllowCrossThreadAccessWrapper):
+        (WebCore::AllowCrossThreadAccessWrapper::value):
+        (WebCore::AllowCrossThreadAccess):
+        (WebCore::AllowAccessLaterWrapper::AllowAccessLaterWrapper):
+        (WebCore::AllowAccessLaterWrapper::value):
+        (WebCore::AllowAccessLater):
+
</ins><span class="cx"> 2016-04-27  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Speculative fix for null pointer dereference.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformCrossThreadCopierh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/CrossThreadCopier.h (200155 => 200156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/CrossThreadCopier.h        2016-04-27 22:50:02 UTC (rev 200155)
+++ trunk/Source/WebCore/platform/CrossThreadCopier.h        2016-04-27 22:53:52 UTC (rev 200156)
</span><span class="lines">@@ -28,8 +28,7 @@
</span><span class="cx">  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef CrossThreadCopier_h
-#define CrossThreadCopier_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="lines">@@ -39,245 +38,245 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-    class IntRect;
-    class IntSize;
-    class URL;
-    class ResourceError;
-    class ResourceRequest;
-    class ResourceResponse;
-    class SessionID;
-    class ThreadSafeDataBuffer;
-    struct CrossThreadResourceResponseData;
-    struct CrossThreadResourceRequestData;
-    struct ThreadableLoaderOptions;
</del><ins>+class IntRect;
+class IntSize;
+class URL;
+class ResourceError;
+class ResourceRequest;
+class ResourceResponse;
+class SessionID;
+class ThreadSafeDataBuffer;
+struct CrossThreadResourceResponseData;
+struct CrossThreadResourceRequestData;
+struct ThreadableLoaderOptions;
</ins><span class="cx"> 
</span><del>-    struct CrossThreadCopierBaseHelper {
-        template&lt;typename T&gt; struct RemovePointer {
-            typedef T Type;
-        };
-        template&lt;typename T&gt; struct RemovePointer&lt;T*&gt; {
-            typedef T Type;
-        };
-
-        template&lt;typename T&gt; struct RemovePointer&lt;RefPtr&lt;T&gt;&gt; {
-            typedef T Type;
-        };
-
-        template&lt;typename T&gt; struct RemovePointer&lt;PassRefPtr&lt;T&gt;&gt; {
-            typedef T Type;
-        };
-
-        template&lt;typename T&gt; struct IsEnumOrConvertibleToInteger {
-            static const bool value = std::is_integral&lt;T&gt;::value || std::is_enum&lt;T&gt;::value || std::is_convertible&lt;T, long double&gt;::value;
-        };
-
-        template&lt;typename T&gt; struct IsThreadSafeRefCountedPointer {
-            static const bool value = std::is_convertible&lt;typename RemovePointer&lt;T&gt;::Type*, ThreadSafeRefCounted&lt;typename RemovePointer&lt;T&gt;::Type&gt;*&gt;::value;
-        };
</del><ins>+struct CrossThreadCopierBaseHelper {
+    template&lt;typename T&gt; struct RemovePointer {
+        typedef T Type;
</ins><span class="cx">     };
</span><ins>+    template&lt;typename T&gt; struct RemovePointer&lt;T*&gt; {
+        typedef T Type;
+    };
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; struct CrossThreadCopierPassThrough {
</del><ins>+    template&lt;typename T&gt; struct RemovePointer&lt;RefPtr&lt;T&gt;&gt; {
</ins><span class="cx">         typedef T Type;
</span><del>-        static Type copy(const T&amp; parameter)
-        {
-            return parameter;
-        }
</del><span class="cx">     };
</span><span class="cx"> 
</span><del>-    template&lt;bool isEnumOrConvertibleToInteger, bool isThreadSafeRefCounted, typename T&gt; struct CrossThreadCopierBase;
-
-    // Integers get passed through without any changes.
-    template&lt;typename T&gt; struct CrossThreadCopierBase&lt;true, false, T&gt; : public CrossThreadCopierPassThrough&lt;T&gt; {
</del><ins>+    template&lt;typename T&gt; struct RemovePointer&lt;PassRefPtr&lt;T&gt;&gt; {
+        typedef T Type;
</ins><span class="cx">     };
</span><span class="cx"> 
</span><del>-    // To allow a type to be passed across threads using its copy constructor, add a forward declaration of the type and
-    // a CopyThreadCopierBase&lt;false, false, TypeName&gt; : public CrossThreadCopierPassThrough&lt;TypeName&gt; { }; to this file.
-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IntRect&gt; : public CrossThreadCopierPassThrough&lt;IntRect&gt; {
</del><ins>+    template&lt;typename T&gt; struct IsEnumOrConvertibleToInteger {
+        static const bool value = std::is_integral&lt;T&gt;::value || std::is_enum&lt;T&gt;::value || std::is_convertible&lt;T, long double&gt;::value;
</ins><span class="cx">     };
</span><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IntSize&gt; : public CrossThreadCopierPassThrough&lt;IntSize&gt; {
</del><ins>+    template&lt;typename T&gt; struct IsThreadSafeRefCountedPointer {
+        static const bool value = std::is_convertible&lt;typename RemovePointer&lt;T&gt;::Type*, ThreadSafeRefCounted&lt;typename RemovePointer&lt;T&gt;::Type&gt;*&gt;::value;
</ins><span class="cx">     };
</span><ins>+};
</ins><span class="cx"> 
</span><del>-    // Custom copy methods.
-    template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, true, T&gt; {
-        typedef typename CrossThreadCopierBaseHelper::RemovePointer&lt;T&gt;::Type RefCountedType;
-        static_assert(std::is_convertible&lt;RefCountedType*, ThreadSafeRefCounted&lt;RefCountedType&gt;*&gt;::value, &quot;T is not convertible to ThreadSafeRefCounted!&quot;);
</del><ins>+template&lt;typename T&gt; struct CrossThreadCopierPassThrough {
+    typedef T Type;
+    static Type copy(const T&amp; parameter)
+    {
+        return parameter;
+    }
+};
</ins><span class="cx"> 
</span><del>-        typedef PassRefPtr&lt;RefCountedType&gt; Type;
-        WEBCORE_EXPORT static Type copy(const T&amp; refPtr)
-        {
-            return refPtr;
-        }
-    };
</del><ins>+template&lt;bool isEnumOrConvertibleToInteger, bool isThreadSafeRefCounted, typename T&gt; struct CrossThreadCopierBase;
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, URL&gt; {
-        typedef URL Type;
-        static Type copy(const URL&amp;);
-    };
</del><ins>+// Integers get passed through without any changes.
+template&lt;typename T&gt; struct CrossThreadCopierBase&lt;true, false, T&gt; : public CrossThreadCopierPassThrough&lt;T&gt; {
+};
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, String&gt; {
-        typedef String Type;
-        static Type copy(const String&amp;);
-    };
</del><ins>+// To allow a type to be passed across threads using its copy constructor, add a forward declaration of the type and
+// a CopyThreadCopierBase&lt;false, false, TypeName&gt; : public CrossThreadCopierPassThrough&lt;TypeName&gt; { }; to this file.
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IntRect&gt; : public CrossThreadCopierPassThrough&lt;IntRect&gt; {
+};
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceError&gt; {
-        typedef ResourceError Type;
-        static Type copy(const ResourceError&amp;);
-    };
</del><ins>+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IntSize&gt; : public CrossThreadCopierPassThrough&lt;IntSize&gt; {
+};
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceRequest&gt; {
-        typedef std::unique_ptr&lt;CrossThreadResourceRequestData&gt; Type;
-        static Type copy(const ResourceRequest&amp;);
-    };
</del><ins>+// Custom copy methods.
+template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, true, T&gt; {
+    typedef typename CrossThreadCopierBaseHelper::RemovePointer&lt;T&gt;::Type RefCountedType;
+    static_assert(std::is_convertible&lt;RefCountedType*, ThreadSafeRefCounted&lt;RefCountedType&gt;*&gt;::value, &quot;T is not convertible to ThreadSafeRefCounted!&quot;);
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceResponse&gt; {
-        typedef std::unique_ptr&lt;CrossThreadResourceResponseData&gt; Type;
-        static Type copy(const ResourceResponse&amp;);
-    };
</del><ins>+    typedef PassRefPtr&lt;RefCountedType&gt; Type;
+    WEBCORE_EXPORT static Type copy(const T&amp; refPtr)
+    {
+        return refPtr;
+    }
+};
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, SessionID&gt; {
-        typedef SessionID Type;
-        static Type copy(const SessionID&amp;);
-    };
</del><ins>+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, URL&gt; {
+    typedef URL Type;
+    static Type copy(const URL&amp;);
+};
</ins><span class="cx"> 
</span><del>-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ThreadSafeDataBuffer&gt; {
-        typedef ThreadSafeDataBuffer Type;
-        static Type copy(const ThreadSafeDataBuffer&amp;);
-    };
</del><ins>+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, String&gt; {
+    typedef String Type;
+    static Type copy(const String&amp;);
+};
</ins><span class="cx"> 
</span><ins>+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceError&gt; {
+    typedef ResourceError Type;
+    static Type copy(const ResourceError&amp;);
+};
+
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceRequest&gt; {
+    typedef std::unique_ptr&lt;CrossThreadResourceRequestData&gt; Type;
+    static Type copy(const ResourceRequest&amp;);
+};
+
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ResourceResponse&gt; {
+    typedef std::unique_ptr&lt;CrossThreadResourceResponseData&gt; Type;
+    static Type copy(const ResourceResponse&amp;);
+};
+
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, SessionID&gt; {
+    typedef SessionID Type;
+    static Type copy(const SessionID&amp;);
+};
+
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, ThreadSafeDataBuffer&gt; {
+    typedef ThreadSafeDataBuffer Type;
+    static Type copy(const ThreadSafeDataBuffer&amp;);
+};
+
</ins><span class="cx"> #if ENABLE(INDEXED_DATABASE)
</span><del>-    namespace IndexedDB {
-        enum class TransactionMode;
-        enum class CursorDirection;
-        enum class CursorType;
-    }
-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::TransactionMode&gt; {
-        WEBCORE_EXPORT static IndexedDB::TransactionMode copy(const IndexedDB::TransactionMode&amp;);
-    };
-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::CursorDirection&gt; {
-        WEBCORE_EXPORT static IndexedDB::CursorDirection copy(const IndexedDB::CursorDirection&amp;);
-    };
-    template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::CursorType&gt; {
-        WEBCORE_EXPORT static IndexedDB::CursorType copy(const IndexedDB::CursorType&amp;);
-    };
</del><ins>+namespace IndexedDB {
+enum class TransactionMode;
+enum class CursorDirection;
+enum class CursorType;
+}
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::TransactionMode&gt; {
+    WEBCORE_EXPORT static IndexedDB::TransactionMode copy(const IndexedDB::TransactionMode&amp;);
+};
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::CursorDirection&gt; {
+    WEBCORE_EXPORT static IndexedDB::CursorDirection copy(const IndexedDB::CursorDirection&amp;);
+};
+template&lt;&gt; struct CrossThreadCopierBase&lt;false, false, IndexedDB::CursorType&gt; {
+    WEBCORE_EXPORT static IndexedDB::CursorType copy(const IndexedDB::CursorType&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBGetResult;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBGetResult&gt; {
-        typedef IDBGetResult Type;
-        static Type copy(const IDBGetResult&amp;);
-    };
</del><ins>+class IDBGetResult;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBGetResult&gt; {
+    typedef IDBGetResult Type;
+    static Type copy(const IDBGetResult&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBKeyData;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBKeyData&gt; {
-        typedef IDBKeyData Type;
-        static Type copy(const IDBKeyData&amp;);
-    };
</del><ins>+class IDBKeyData;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBKeyData&gt; {
+    typedef IDBKeyData Type;
+    static Type copy(const IDBKeyData&amp;);
+};
</ins><span class="cx"> 
</span><del>-    struct IDBKeyRangeData;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBKeyRangeData&gt; {
-        typedef IDBKeyRangeData Type;
-        static Type copy(const IDBKeyRangeData&amp;);
-    };
</del><ins>+struct IDBKeyRangeData;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBKeyRangeData&gt; {
+    typedef IDBKeyRangeData Type;
+    static Type copy(const IDBKeyRangeData&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBDatabaseInfo;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBDatabaseInfo&gt; {
-        typedef IDBDatabaseInfo Type;
-        static Type copy(const IDBDatabaseInfo&amp;);
-    };
</del><ins>+class IDBDatabaseInfo;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBDatabaseInfo&gt; {
+    typedef IDBDatabaseInfo Type;
+    static Type copy(const IDBDatabaseInfo&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBDatabaseIdentifier;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBDatabaseIdentifier&gt; {
-        typedef IDBDatabaseIdentifier Type;
-        static Type copy(const IDBDatabaseIdentifier&amp;);
-    };
</del><ins>+class IDBDatabaseIdentifier;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBDatabaseIdentifier&gt; {
+    typedef IDBDatabaseIdentifier Type;
+    static Type copy(const IDBDatabaseIdentifier&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBError;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBError&gt; {
-        typedef IDBError Type;
-        static Type copy(const IDBError&amp;);
-    };
</del><ins>+class IDBError;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBError&gt; {
+    typedef IDBError Type;
+    static Type copy(const IDBError&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBResourceIdentifier;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBResourceIdentifier&gt; {
-        typedef IDBResourceIdentifier Type;
-        static Type copy(const IDBResourceIdentifier&amp;);
-    };
</del><ins>+class IDBResourceIdentifier;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBResourceIdentifier&gt; {
+    typedef IDBResourceIdentifier Type;
+    static Type copy(const IDBResourceIdentifier&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBTransactionInfo;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBTransactionInfo&gt; {
-        typedef IDBTransactionInfo Type;
-        static Type copy(const IDBTransactionInfo&amp;);
-    };
</del><ins>+class IDBTransactionInfo;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBTransactionInfo&gt; {
+    typedef IDBTransactionInfo Type;
+    static Type copy(const IDBTransactionInfo&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBObjectStoreInfo;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBObjectStoreInfo&gt; {
-        typedef IDBObjectStoreInfo Type;
-        static Type copy(const IDBObjectStoreInfo&amp;);
-    };
</del><ins>+class IDBObjectStoreInfo;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBObjectStoreInfo&gt; {
+    typedef IDBObjectStoreInfo Type;
+    static Type copy(const IDBObjectStoreInfo&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBIndexInfo;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBIndexInfo&gt; {
-        typedef IDBIndexInfo Type;
-        static Type copy(const IDBIndexInfo&amp;);
-    };
</del><ins>+class IDBIndexInfo;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBIndexInfo&gt; {
+    typedef IDBIndexInfo Type;
+    static Type copy(const IDBIndexInfo&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBCursorInfo;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBCursorInfo&gt; {
-        typedef IDBCursorInfo Type;
-        static Type copy(const IDBCursorInfo&amp;);
-    };
</del><ins>+class IDBCursorInfo;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBCursorInfo&gt; {
+    typedef IDBCursorInfo Type;
+    static Type copy(const IDBCursorInfo&amp;);
+};
</ins><span class="cx"> 
</span><del>-    class IDBValue;
-    template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBValue&gt; {
-        typedef IDBValue Type;
-        static Type copy(const IDBValue&amp;);
-    };
</del><ins>+class IDBValue;
+template&lt;&gt; struct WEBCORE_EXPORT CrossThreadCopierBase&lt;false, false, IDBValue&gt; {
+    typedef IDBValue Type;
+    static Type copy(const IDBValue&amp;);
+};
</ins><span class="cx"> 
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    template&lt;typename T&gt;
-    struct CrossThreadCopier : public CrossThreadCopierBase&lt;CrossThreadCopierBaseHelper::IsEnumOrConvertibleToInteger&lt;T&gt;::value, CrossThreadCopierBaseHelper::IsThreadSafeRefCountedPointer&lt;T&gt;::value, T&gt; {
-    };
</del><ins>+template&lt;typename T&gt;
+struct CrossThreadCopier : public CrossThreadCopierBase&lt;CrossThreadCopierBaseHelper::IsEnumOrConvertibleToInteger&lt;T&gt;::value, CrossThreadCopierBaseHelper::IsThreadSafeRefCountedPointer&lt;T&gt;::value, T&gt; {
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; struct AllowCrossThreadAccessWrapper {
-    public:
-        explicit AllowCrossThreadAccessWrapper(T* value) : m_value(value) { }
-        T* value() const { return m_value; }
-    private:
-        T* m_value;
-    };
</del><ins>+template&lt;typename T&gt; struct AllowCrossThreadAccessWrapper {
+public:
+    explicit AllowCrossThreadAccessWrapper(T* value)
+        : m_value(value) { }
+    T* value() const { return m_value; }
+private:
+    T* m_value;
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, false, AllowCrossThreadAccessWrapper&lt;T&gt;&gt; {
-        typedef T* Type;
-        static Type copy(const AllowCrossThreadAccessWrapper&lt;T&gt;&amp; wrapper) { return wrapper.value(); }
-    };
</del><ins>+template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, false, AllowCrossThreadAccessWrapper&lt;T&gt;&gt; {
+    typedef T* Type;
+    static Type copy(const AllowCrossThreadAccessWrapper&lt;T&gt;&amp; wrapper) { return wrapper.value(); }
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; AllowCrossThreadAccessWrapper&lt;T&gt; AllowCrossThreadAccess(T* value) 
-    {
-        return AllowCrossThreadAccessWrapper&lt;T&gt;(value);
-    }
</del><ins>+template&lt;typename T&gt; AllowCrossThreadAccessWrapper&lt;T&gt; AllowCrossThreadAccess(T* value) 
+{
+    return AllowCrossThreadAccessWrapper&lt;T&gt;(value);
+}
</ins><span class="cx"> 
</span><del>-    // FIXME: Move to a different header file. AllowAccessLater is for cross-thread access
-    // that is not cross-thread (tasks posted to a queue guaranteed to run on the same thread).
-    template&lt;typename T&gt; struct AllowAccessLaterWrapper {
-    public:
-        explicit AllowAccessLaterWrapper(T* value) : m_value(value) { }
-        T* value() const { return m_value; }
-    private:
-        T* m_value;
-    };
</del><ins>+// FIXME: Move to a different header file. AllowAccessLater is for cross-thread access
+// that is not cross-thread (tasks posted to a queue guaranteed to run on the same thread).
+template&lt;typename T&gt; struct AllowAccessLaterWrapper {
+public:
+    explicit AllowAccessLaterWrapper(T* value)
+        : m_value(value) { }
+    T* value() const { return m_value; }
+private:
+    T* m_value;
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, false, AllowAccessLaterWrapper&lt;T&gt;&gt; {
-        typedef T* Type;
-        static Type copy(const AllowAccessLaterWrapper&lt;T&gt;&amp; wrapper) { return wrapper.value(); }
-    };
</del><ins>+template&lt;typename T&gt; struct CrossThreadCopierBase&lt;false, false, AllowAccessLaterWrapper&lt;T&gt;&gt; {
+    typedef T* Type;
+    static Type copy(const AllowAccessLaterWrapper&lt;T&gt;&amp; wrapper) { return wrapper.value(); }
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T&gt; AllowAccessLaterWrapper&lt;T&gt; AllowAccessLater(T* value)
-    {
-        return AllowAccessLaterWrapper&lt;T&gt;(value);
-    }
</del><ins>+template&lt;typename T&gt; AllowAccessLaterWrapper&lt;T&gt; AllowAccessLater(T* value)
+{
+    return AllowAccessLaterWrapper&lt;T&gt;(value);
+}
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><del>-
-#endif // CrossThreadCopier_h
</del></span></pre>
</div>
</div>

</body>
</html>