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

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

Issue 2857143005: Gather serialization-related code into a directory. (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/bindings/core/v8/Transferables.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/Transferables.h b/third_party/WebKit/Source/bindings/core/v8/Transferables.h
deleted file mode 100644
index 860f44528e1aa52031cbf7cb303a569f2f9899d5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/core/v8/Transferables.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef Transferables_h
-#define Transferables_h
-
-#include "core/CoreExport.h"
-#include "platform/heap/Handle.h"
-#include "platform/wtf/Noncopyable.h"
-
-namespace blink {
-
-class DOMArrayBufferBase;
-class ImageBitmap;
-class OffscreenCanvas;
-class MessagePort;
-
-using ArrayBufferArray = HeapVector<Member<DOMArrayBufferBase>>;
-using ImageBitmapArray = HeapVector<Member<ImageBitmap>>;
-using OffscreenCanvasArray = HeapVector<Member<OffscreenCanvas>>;
-using MessagePortArray = HeapVector<Member<MessagePort>>;
-
-class CORE_EXPORT Transferables final {
- STACK_ALLOCATED();
- WTF_MAKE_NONCOPYABLE(Transferables);
-
- public:
- Transferables() {}
-
- ArrayBufferArray array_buffers;
- ImageBitmapArray image_bitmaps;
- OffscreenCanvasArray offscreen_canvases;
- MessagePortArray message_ports;
-};
-
-// Along with extending |Transferables| to hold a new kind of transferable
-// objects, serialization handling code changes are required:
-// - extend ScriptValueSerializer::copyTransferables()
-// - alter SerializedScriptValue(Factory) to do the actual transfer.
-
-} // namespace blink
-
-#endif // Transferables_h

Powered by Google App Engine
This is Rietveld 408576698