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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 class BlobDataHandle; 48 class BlobDataHandle;
49 class DOMArrayBufferBase; 49 class DOMArrayBufferBase;
50 class ExceptionState; 50 class ExceptionState;
51 class ImageBitmap; 51 class ImageBitmap;
52 class StaticBitmapImage; 52 class StaticBitmapImage;
53 class MessagePort; 53 class MessagePort;
54 class WebBlobInfo; 54 class WebBlobInfo;
55 55
56 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray; 56 typedef HeapVector<Member<MessagePort>, 1> MessagePortArray;
57 typedef Vector<RefPtr<DOMArrayBufferBase>, 1> ArrayBufferArray; 57 typedef HeapVector<Member<DOMArrayBufferBase>, 1> ArrayBufferArray;
58 typedef HashMap<String, RefPtr<BlobDataHandle>> BlobDataHandleMap; 58 typedef HashMap<String, RefPtr<BlobDataHandle>> BlobDataHandleMap;
59 typedef Vector<WebBlobInfo> WebBlobInfoArray; 59 typedef Vector<WebBlobInfo> WebBlobInfoArray;
60 typedef HeapVector<Member<ImageBitmap>, 1> ImageBitmapArray; 60 typedef HeapVector<Member<ImageBitmap>, 1> ImageBitmapArray;
61 61
62 class CORE_EXPORT SerializedScriptValue : public ThreadSafeRefCounted<Serialized ScriptValue> { 62 class CORE_EXPORT SerializedScriptValue : public ThreadSafeRefCounted<Serialized ScriptValue> {
63 public: 63 public:
64 // Increment this for each incompatible change to the wire format. 64 // Increment this for each incompatible change to the wire format.
65 // Version 2: Added StringUCharTag for UChar v8 strings. 65 // Version 2: Added StringUCharTag for UChar v8 strings.
66 // Version 3: Switched to using uuids as blob data identifiers. 66 // Version 3: Switched to using uuids as blob data identifiers.
67 // Version 4: Extended File serialization to be complete. 67 // Version 4: Extended File serialization to be complete.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 OwnPtr<ImageBitmapContentsArray> m_imageBitmapContentsArray; 132 OwnPtr<ImageBitmapContentsArray> m_imageBitmapContentsArray;
133 BlobDataHandleMap m_blobDataHandles; 133 BlobDataHandleMap m_blobDataHandles;
134 intptr_t m_externallyAllocatedMemory; 134 intptr_t m_externallyAllocatedMemory;
135 135
136 friend class SerializedScriptValueFactory; 136 friend class SerializedScriptValueFactory;
137 }; 137 };
138 138
139 } // namespace blink 139 } // namespace blink
140 140
141 #endif // SerializedScriptValue_h 141 #endif // SerializedScriptValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698