| Index: third_party/WebKit/Source/wtf/CrossThreadCopierTest.cpp
|
| diff --git a/third_party/WebKit/Source/platform/CrossThreadCopier.cpp b/third_party/WebKit/Source/wtf/CrossThreadCopierTest.cpp
|
| similarity index 77%
|
| rename from third_party/WebKit/Source/platform/CrossThreadCopier.cpp
|
| rename to third_party/WebKit/Source/wtf/CrossThreadCopierTest.cpp
|
| index 4f60be15912308eea487b8d201350487dab2a73e..246b139e25ca0795e027cd19d993a6a98614d330 100644
|
| --- a/third_party/WebKit/Source/platform/CrossThreadCopier.cpp
|
| +++ b/third_party/WebKit/Source/wtf/CrossThreadCopierTest.cpp
|
| @@ -28,41 +28,16 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "platform/CrossThreadCopier.h"
|
| +#include "wtf/CrossThreadCopier.h"
|
|
|
| -#include "platform/network/ResourceError.h"
|
| -#include "platform/network/ResourceRequest.h"
|
| -#include "platform/network/ResourceResponse.h"
|
| -#include "platform/weborigin/KURL.h"
|
| -#include "wtf/text/WTFString.h"
|
| +#include "wtf/PassRefPtr.h"
|
| +#include "wtf/RefCounted.h"
|
| +#include "wtf/RefPtr.h"
|
| +#include "wtf/ThreadSafeRefCounted.h"
|
| #include <memory>
|
| +#include <type_traits>
|
|
|
| -namespace blink {
|
| -
|
| -CrossThreadCopier<KURL>::Type CrossThreadCopier<KURL>::copy(const KURL& url)
|
| -{
|
| - return url.copy();
|
| -}
|
| -
|
| -CrossThreadCopier<String>::Type CrossThreadCopier<String>::copy(const String& str)
|
| -{
|
| - return str.isolatedCopy();
|
| -}
|
| -
|
| -CrossThreadCopier<ResourceError>::Type CrossThreadCopier<ResourceError>::copy(const ResourceError& error)
|
| -{
|
| - return error.copy();
|
| -}
|
| -
|
| -CrossThreadCopier<ResourceRequest>::Type CrossThreadCopier<ResourceRequest>::copy(const ResourceRequest& request)
|
| -{
|
| - return passed(request.copyData());
|
| -}
|
| -
|
| -CrossThreadCopier<ResourceResponse>::Type CrossThreadCopier<ResourceResponse>::copy(const ResourceResponse& response)
|
| -{
|
| - return passed(response.copyData());
|
| -}
|
| +namespace WTF {
|
|
|
| // Test CrossThreadCopier using static_assert.
|
|
|
|
|