Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/SourceLocation.h

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/SourceLocation.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.h b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.h
index 69b5af5b46ceb2e49ef49de2d3a03b6e7ff7f723..c64ed344dd8e6292a1eef6356dd6ef1654baf83b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.h
+++ b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.h
@@ -6,8 +6,8 @@
#define SourceLocation_h
#include "core/CoreExport.h"
-#include "platform/CrossThreadCopier.h"
#include "platform/v8_inspector/public/V8StackTrace.h"
+#include "wtf/CrossThreadCopier.h"
#include "wtf/Forward.h"
#include "wtf/text/WTFString.h"
#include <memory>
@@ -68,10 +68,14 @@ private:
int m_scriptId;
};
+} // namespace blink
+
+namespace WTF {
+
template <>
-struct CrossThreadCopier<std::unique_ptr<SourceLocation>> {
- using Type = std::unique_ptr<SourceLocation>;
- static Type copy(std::unique_ptr<SourceLocation> location)
+struct CrossThreadCopier<std::unique_ptr<blink::SourceLocation>> {
+ using Type = std::unique_ptr<blink::SourceLocation>;
+ static Type copy(std::unique_ptr<blink::SourceLocation> location)
{
return location ? location->isolatedCopy() : nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698