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

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

Issue 177633006: Implement IDBVersionChangeEvent ctor w/ IDBVersionChangeEventInit dict (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 static PassRefPtr<SerializedScriptValue> create(const String&); 75 static PassRefPtr<SerializedScriptValue> create(const String&);
76 static PassRefPtr<SerializedScriptValue> create(const String&, v8::Isolate*) ; 76 static PassRefPtr<SerializedScriptValue> create(const String&, v8::Isolate*) ;
77 static PassRefPtr<SerializedScriptValue> create(); 77 static PassRefPtr<SerializedScriptValue> create();
78 78
79 static PassRefPtr<SerializedScriptValue> create(const ScriptValue&, Exceptio nState&, ScriptState*); 79 static PassRefPtr<SerializedScriptValue> create(const ScriptValue&, Exceptio nState&, ScriptState*);
80 80
81 // Never throws exceptions. 81 // Never throws exceptions.
82 static PassRefPtr<SerializedScriptValue> createAndSwallowExceptions(v8::Hand le<v8::Value>, v8::Isolate*); 82 static PassRefPtr<SerializedScriptValue> createAndSwallowExceptions(v8::Hand le<v8::Value>, v8::Isolate*);
83 83
84 static PassRefPtr<SerializedScriptValue> nullValue(); 84 static PassRefPtr<SerializedScriptValue> nullValue();
85 static PassRefPtr<SerializedScriptValue> nullValue(v8::Isolate*); 85 static PassRefPtr<SerializedScriptValue> numberValue(double number);
86 86
87 String toWireString() const { return m_data; } 87 String toWireString() const { return m_data; }
88 void toWireBytes(Vector<char>&) const; 88 void toWireBytes(Vector<char>&) const;
89 89
90 // Deserializes the value (in the current context). Returns a null value in 90 // Deserializes the value (in the current context). Returns a null value in
91 // case of failure. 91 // case of failure.
92 v8::Handle<v8::Value> deserialize(MessagePortArray* = 0); 92 v8::Handle<v8::Value> deserialize(MessagePortArray* = 0);
93 v8::Handle<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0); 93 v8::Handle<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0);
94 94
95 // Only reflects the truth if the SSV was created by walking a v8 value, not reliable 95 // Only reflects the truth if the SSV was created by walking a v8 value, not reliable
(...skipping 21 matching lines...) Expand all
117 117
118 String m_data; 118 String m_data;
119 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 119 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
120 BlobDataHandleMap m_blobDataHandles; 120 BlobDataHandleMap m_blobDataHandles;
121 intptr_t m_externallyAllocatedMemory; 121 intptr_t m_externallyAllocatedMemory;
122 }; 122 };
123 123
124 } // namespace WebCore 124 } // namespace WebCore
125 125
126 #endif // SerializedScriptValue_h 126 #endif // SerializedScriptValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698