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

Side by Side Diff: Source/bindings/v8/SerializedScriptValue.h

Issue 344833002: Oilpan: move MessagePortArray to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 6 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
« no previous file with comments | « Source/bindings/v8/Dictionary.cpp ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class ArrayBufferContents; 48 class ArrayBufferContents;
49 49
50 } 50 }
51 51
52 namespace WebCore { 52 namespace WebCore {
53 53
54 class BlobDataHandle; 54 class BlobDataHandle;
55 class ExceptionState; 55 class ExceptionState;
56 class MessagePort; 56 class MessagePort;
57 57
58 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; 58 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray;
59 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray; 59 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray;
60 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; 60 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap;
61 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; 61 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray;
62 62
63 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript Value> { 63 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript Value> {
64 public: 64 public:
65 // Increment this for each incompatible change to the wire format. 65 // Increment this for each incompatible change to the wire format.
66 // Version 2: Added StringUCharTag for UChar v8 strings. 66 // Version 2: Added StringUCharTag for UChar v8 strings.
67 // Version 3: Switched to using uuids as blob data identifiers. 67 // Version 3: Switched to using uuids as blob data identifiers.
68 // Version 4: Extended File serialization to be complete. 68 // Version 4: Extended File serialization to be complete.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 String m_data; 126 String m_data;
127 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 127 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
128 BlobDataHandleMap m_blobDataHandles; 128 BlobDataHandleMap m_blobDataHandles;
129 intptr_t m_externallyAllocatedMemory; 129 intptr_t m_externallyAllocatedMemory;
130 }; 130 };
131 131
132 } // namespace WebCore 132 } // namespace WebCore
133 133
134 #endif // SerializedScriptValue_h 134 #endif // SerializedScriptValue_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/Dictionary.cpp ('k') | Source/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698