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

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

Issue 921813002: Fix template angle bracket syntax in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/SerializedScriptValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return static_cast<unsigned>(unsafeHandleFromRawValue(key)->GetIdent ityHash()); 78 return static_cast<unsigned>(unsafeHandleFromRawValue(key)->GetIdent ityHash());
79 } 79 }
80 static bool equal(const G* a, const G* b) 80 static bool equal(const G* a, const G* b)
81 { 81 {
82 return unsafeHandleFromRawValue(a) == unsafeHandleFromRawValue(b); 82 return unsafeHandleFromRawValue(a) == unsafeHandleFromRawValue(b);
83 } 83 }
84 // For HashArg. 84 // For HashArg.
85 static const bool safeToCompareToEmptyOrDeleted = false; 85 static const bool safeToCompareToEmptyOrDeleted = false;
86 }; 86 };
87 87
88 typedef WTF::HashMap<GCObject*, T, V8HandlePtrHash<GCObject> > HandleToT; 88 typedef WTF::HashMap<GCObject*, T, V8HandlePtrHash<GCObject>> HandleToT;
89 HandleToT m_map; 89 HandleToT m_map;
90 }; 90 };
91 91
92 // SerializedScriptValueWriter is responsible for serializing primitive types an d storing 92 // SerializedScriptValueWriter is responsible for serializing primitive types an d storing
93 // information used to reconstruct composite types. 93 // information used to reconstruct composite types.
94 class SerializedScriptValueWriter { 94 class SerializedScriptValueWriter {
95 STACK_ALLOCATED(); 95 STACK_ALLOCATED();
96 WTF_MAKE_NONCOPYABLE(SerializedScriptValueWriter); 96 WTF_MAKE_NONCOPYABLE(SerializedScriptValueWriter);
97 public: 97 public:
98 typedef UChar BufferValueType; 98 typedef UChar BufferValueType;
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 ASSERT(length <= m_stack.size()); 559 ASSERT(length <= m_stack.size());
560 m_stack.shrink(m_stack.size() - length); 560 m_stack.shrink(m_stack.size() - length);
561 } 561 }
562 unsigned stackDepth() const { return m_stack.size(); } 562 unsigned stackDepth() const { return m_stack.size(); }
563 563
564 v8::Local<v8::Value> element(unsigned index); 564 v8::Local<v8::Value> element(unsigned index);
565 void openComposite(const v8::Local<v8::Value>&); 565 void openComposite(const v8::Local<v8::Value>&);
566 bool closeComposite(v8::Handle<v8::Value>*); 566 bool closeComposite(v8::Handle<v8::Value>*);
567 567
568 SerializedScriptValueReader& m_reader; 568 SerializedScriptValueReader& m_reader;
569 Vector<v8::Local<v8::Value> > m_stack; 569 Vector<v8::Local<v8::Value>> m_stack;
570 Vector<v8::Handle<v8::Value> > m_objectPool; 570 Vector<v8::Handle<v8::Value>> m_objectPool;
571 Vector<uint32_t> m_openCompositeReferenceStack; 571 Vector<uint32_t> m_openCompositeReferenceStack;
572 RawPtrWillBeMember<MessagePortArray> m_transferredMessagePorts; 572 RawPtrWillBeMember<MessagePortArray> m_transferredMessagePorts;
573 ArrayBufferContentsArray* m_arrayBufferContents; 573 ArrayBufferContentsArray* m_arrayBufferContents;
574 Vector<v8::Handle<v8::Value> > m_arrayBuffers; 574 Vector<v8::Handle<v8::Value>> m_arrayBuffers;
575 uint32_t m_version; 575 uint32_t m_version;
576 }; 576 };
577 577
578 } // namespace blink 578 } // namespace blink
579 579
580 #endif // ScriptValueSerializer_h 580 #endif // ScriptValueSerializer_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/SerializedScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698