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

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

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Added static cast to LocalFrameId::hash() to avoid warnings when compiled on Windows Created 4 years, 1 month 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 "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "bindings/core/v8/SerializationTag.h" 9 #include "bindings/core/v8/SerializationTag.h"
10 #include "bindings/core/v8/SerializedScriptValue.h" 10 #include "bindings/core/v8/SerializedScriptValue.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void writeRegExp(v8::Local<v8::String> pattern, v8::RegExp::Flags); 161 void writeRegExp(v8::Local<v8::String> pattern, v8::RegExp::Flags);
162 void writeTransferredMessagePort(uint32_t index); 162 void writeTransferredMessagePort(uint32_t index);
163 void writeTransferredArrayBuffer(uint32_t index); 163 void writeTransferredArrayBuffer(uint32_t index);
164 void writeTransferredImageBitmap(uint32_t index); 164 void writeTransferredImageBitmap(uint32_t index);
165 void writeTransferredOffscreenCanvas(uint32_t width, 165 void writeTransferredOffscreenCanvas(uint32_t width,
166 uint32_t height, 166 uint32_t height,
167 uint32_t canvasId, 167 uint32_t canvasId,
168 uint32_t clientId, 168 uint32_t clientId,
169 uint32_t sinkId, 169 uint32_t sinkId,
170 uint32_t localId, 170 uint32_t localId,
171 uint64_t nonce); 171 uint64_t nonceHigh,
172 uint64_t nonceLow);
172 void writeTransferredSharedArrayBuffer(uint32_t index); 173 void writeTransferredSharedArrayBuffer(uint32_t index);
173 void writeObjectReference(uint32_t reference); 174 void writeObjectReference(uint32_t reference);
174 void writeObject(uint32_t numProperties); 175 void writeObject(uint32_t numProperties);
175 void writeSparseArray(uint32_t numProperties, uint32_t length); 176 void writeSparseArray(uint32_t numProperties, uint32_t length);
176 void writeDenseArray(uint32_t numProperties, uint32_t length); 177 void writeDenseArray(uint32_t numProperties, uint32_t length);
177 void writeReferenceCount(uint32_t numberOfReferences); 178 void writeReferenceCount(uint32_t numberOfReferences);
178 void writeGenerateFreshObject(); 179 void writeGenerateFreshObject();
179 void writeGenerateFreshSparseArray(uint32_t length); 180 void writeGenerateFreshSparseArray(uint32_t length);
180 void writeGenerateFreshDenseArray(uint32_t length); 181 void writeGenerateFreshDenseArray(uint32_t length);
181 void writeGenerateFreshMap(); 182 void writeGenerateFreshMap();
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 void pushObjectReference(const v8::Local<v8::Value>&); 638 void pushObjectReference(const v8::Local<v8::Value>&);
638 bool tryGetTransferredMessagePort(uint32_t index, v8::Local<v8::Value>*); 639 bool tryGetTransferredMessagePort(uint32_t index, v8::Local<v8::Value>*);
639 bool tryGetTransferredArrayBuffer(uint32_t index, v8::Local<v8::Value>*); 640 bool tryGetTransferredArrayBuffer(uint32_t index, v8::Local<v8::Value>*);
640 bool tryGetTransferredImageBitmap(uint32_t index, v8::Local<v8::Value>*); 641 bool tryGetTransferredImageBitmap(uint32_t index, v8::Local<v8::Value>*);
641 bool tryGetTransferredOffscreenCanvas(uint32_t width, 642 bool tryGetTransferredOffscreenCanvas(uint32_t width,
642 uint32_t height, 643 uint32_t height,
643 uint32_t canvasId, 644 uint32_t canvasId,
644 uint32_t clientId, 645 uint32_t clientId,
645 uint32_t sinkId, 646 uint32_t sinkId,
646 uint32_t localId, 647 uint32_t localId,
647 uint64_t nonce, 648 uint64_t nonceHigh,
649 uint64_t nonceLow,
648 v8::Local<v8::Value>*); 650 v8::Local<v8::Value>*);
649 bool tryGetTransferredSharedArrayBuffer(uint32_t index, 651 bool tryGetTransferredSharedArrayBuffer(uint32_t index,
650 v8::Local<v8::Value>*); 652 v8::Local<v8::Value>*);
651 bool tryGetObjectFromObjectReference(uint32_t reference, 653 bool tryGetObjectFromObjectReference(uint32_t reference,
652 v8::Local<v8::Value>*); 654 v8::Local<v8::Value>*);
653 uint32_t objectReferenceCount(); 655 uint32_t objectReferenceCount();
654 656
655 protected: 657 protected:
656 SerializedScriptValueReader& reader() { return m_reader; } 658 SerializedScriptValueReader& reader() { return m_reader; }
657 virtual bool read(v8::Local<v8::Value>*); 659 virtual bool read(v8::Local<v8::Value>*);
(...skipping 22 matching lines...) Expand all
680 ArrayBufferContentsArray* m_arrayBufferContents; 682 ArrayBufferContentsArray* m_arrayBufferContents;
681 ImageBitmapContentsArray* m_imageBitmapContents; 683 ImageBitmapContentsArray* m_imageBitmapContents;
682 Vector<v8::Local<v8::Value>> m_arrayBuffers; 684 Vector<v8::Local<v8::Value>> m_arrayBuffers;
683 Vector<v8::Local<v8::Value>> m_imageBitmaps; 685 Vector<v8::Local<v8::Value>> m_imageBitmaps;
684 uint32_t m_version; 686 uint32_t m_version;
685 }; 687 };
686 688
687 } // namespace blink 689 } // namespace blink
688 690
689 #endif // ScriptValueSerializer_h 691 #endif // ScriptValueSerializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698