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

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

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: applied review comments Created 5 years, 2 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScriptValueSerializer_h 5 #ifndef ScriptValueSerializer_h
6 #define ScriptValueSerializer_h 6 #define ScriptValueSerializer_h
7 7
8 #include "bindings/core/v8/SerializationTag.h" 8 #include "bindings/core/v8/SerializationTag.h"
9 #include "bindings/core/v8/SerializedScriptValue.h" 9 #include "bindings/core/v8/SerializedScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 bool readArrayBufferViewSubTag(ArrayBufferViewSubTag*); 520 bool readArrayBufferViewSubTag(ArrayBufferViewSubTag*);
521 bool readString(v8::Local<v8::Value>*); 521 bool readString(v8::Local<v8::Value>*);
522 bool readUCharString(v8::Local<v8::Value>*); 522 bool readUCharString(v8::Local<v8::Value>*);
523 bool readStringObject(v8::Local<v8::Value>*); 523 bool readStringObject(v8::Local<v8::Value>*);
524 bool readInt32(v8::Local<v8::Value>*); 524 bool readInt32(v8::Local<v8::Value>*);
525 bool readDate(v8::Local<v8::Value>*); 525 bool readDate(v8::Local<v8::Value>*);
526 bool readNumber(v8::Local<v8::Value>*); 526 bool readNumber(v8::Local<v8::Value>*);
527 bool readNumberObject(v8::Local<v8::Value>*); 527 bool readNumberObject(v8::Local<v8::Value>*);
528 bool readImageData(v8::Local<v8::Value>*); 528 bool readImageData(v8::Local<v8::Value>*);
529 bool readCompositorProxy(v8::Local<v8::Value>*); 529 bool readCompositorProxy(v8::Local<v8::Value>*);
530 PassRefPtr<DOMArrayBuffer> doReadArrayBuffer(); 530 PassRefPtr<DOMArrayBuffer> doReadArrayBufferOrNull();
531 bool readArrayBuffer(v8::Local<v8::Value>*); 531 bool readArrayBuffer(v8::Local<v8::Value>*);
532 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueCompositeCreator& ); 532 bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueCompositeCreator& );
533 bool readRegExp(v8::Local<v8::Value>*); 533 bool readRegExp(v8::Local<v8::Value>*);
534 bool readBlob(v8::Local<v8::Value>*, bool isIndexed); 534 bool readBlob(v8::Local<v8::Value>*, bool isIndexed);
535 bool readFile(v8::Local<v8::Value>*, bool isIndexed); 535 bool readFile(v8::Local<v8::Value>*, bool isIndexed);
536 bool readFileList(v8::Local<v8::Value>*, bool isIndexed); 536 bool readFileList(v8::Local<v8::Value>*, bool isIndexed);
537 File* readFileHelper(); 537 File* readFileHelper();
538 File* readFileIndexHelper(); 538 File* readFileIndexHelper();
539 539
540 template<class T> 540 template<class T>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 Vector<uint32_t> m_openCompositeReferenceStack; 624 Vector<uint32_t> m_openCompositeReferenceStack;
625 MessagePortArray* m_transferredMessagePorts; 625 MessagePortArray* m_transferredMessagePorts;
626 ArrayBufferContentsArray* m_arrayBufferContents; 626 ArrayBufferContentsArray* m_arrayBufferContents;
627 Vector<v8::Local<v8::Value>> m_arrayBuffers; 627 Vector<v8::Local<v8::Value>> m_arrayBuffers;
628 uint32_t m_version; 628 uint32_t m_version;
629 }; 629 };
630 630
631 } // namespace blink 631 } // namespace blink
632 632
633 #endif // ScriptValueSerializer_h 633 #endif // ScriptValueSerializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698