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

Unified Diff: Source/platform/CrossThreadCopier.h

Issue 267323004: Oilpan: Move ThreadableWebSocketChannelClientWrapper to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/platform/CrossThreadCopier.h
diff --git a/Source/platform/CrossThreadCopier.h b/Source/platform/CrossThreadCopier.h
index 0adbf860d1a5026e9614682c7c7555deb1022c9c..f87c653fa6c30f4f89266fd73aaf803b05bc1ff3 100644
--- a/Source/platform/CrossThreadCopier.h
+++ b/Source/platform/CrossThreadCopier.h
@@ -32,6 +32,7 @@
#define CrossThreadCopier_h
#include "platform/PlatformExport.h"
+#include "platform/heap/Handle.h"
#include "wtf/Assertions.h"
#include "wtf/Forward.h"
#include "wtf/PassOwnPtr.h"
@@ -48,6 +49,7 @@ namespace WebCore {
class ResourceError;
class ResourceRequest;
class ResourceResponse;
+ class ThreadableWebSocketChannelClientWrapper;
struct CrossThreadResourceResponseData;
struct CrossThreadResourceRequestData;
struct ThreadableLoaderOptions;
@@ -104,6 +106,14 @@ namespace WebCore {
}
};
+ template<> struct CrossThreadCopierBase<false, false, ThreadableWebSocketChannelClientWrapper*> {
haraken 2014/05/07 07:45:16 I must admit that I'm not understanding what I'm d
tkent 2014/05/07 08:10:41 The generated code would be ok. We don't need spe
haraken 2014/05/07 11:18:33 Done. Please take a look, I'm not familiar with te
+ typedef ThreadableWebSocketChannelClientWrapper* Type;
+ static Type copy(Type rawPtr)
+ {
+ return rawPtr;
+ }
+ };
+
template<> struct CrossThreadCopierBase<false, false, KURL> {
typedef KURL Type;
PLATFORM_EXPORT static Type copy(const KURL&);

Powered by Google App Engine
This is Rietveld 408576698