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

Side by Side Diff: Source/WebCore/bindings/public/ScriptValueDeserializer.h

Issue 8806015: Changes to support a second VM. (Closed) Base URL: svn://svn.chromium.org/dash/experimental/chrome/src/webkit-full
Patch Set: . Created 9 years 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
(Empty)
1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #ifndef ScriptValueDeserializer_h
32 #define ScriptValueDeserializer_h
33
34 #include <stdint.h>
35 #include <wtf/PassRefPtr.h>
36
37 namespace WebCore {
38
39 class ArrayBuffer;
40 class Blob;
41 class File;
42 class FileList;
43 class ImageData;
44
45 class ScriptValueDeserializer {
46 public:
47 virtual ~ScriptValueDeserializer() { }
48
49 virtual uint32_t objectReferenceCount() = 0;
50 virtual void addReferenceForTop() = 0;
51 virtual bool tryGetObjectFromObjectReference(uint32_t reference) = 0;
52 virtual bool newArray(uint32_t length) = 0;
53 virtual bool newObject() = 0;
54
55 virtual bool pushUndefined() = 0;
56 virtual bool pushNull() = 0;
57 virtual bool pushTrue() = 0;
58 virtual bool pushTrueObject() = 0;
59 virtual bool pushFalse() = 0;
60 virtual bool pushFalseObject() = 0;
61 virtual bool pushScriptString(const char* data, uint32_t length) = 0;
62 virtual bool pushScriptStringObject() = 0;
63 virtual bool pushInt32(int32_t) = 0;
64 virtual bool pushUInt32(uint32_t) = 0;
65 virtual bool pushDate(double numberValue) = 0;
66 virtual bool pushNumber(double) = 0;
67 virtual bool pushNumberObject(double) = 0;
68 virtual bool pushBlob(PassRefPtr<Blob>) = 0;
69 virtual bool pushFile(PassRefPtr<File>) = 0;
70 virtual bool pushFileList(PassRefPtr<FileList>) = 0;
71 virtual bool pushImageData(PassRefPtr<ImageData>) = 0;
72 virtual bool pushArray(uint32_t length) = 0;
73 virtual bool pushRegExp(uint32_t flags) = 0;
74 virtual bool pushObject(uint32_t numProperties) = 0;
75 virtual bool pushSparseArray(uint32_t numProperties, uint32_t length) = 0;
76 virtual bool pushInt8Array(uint32_t byteOffset, uint32_t byteLength) = 0;
77 virtual bool pushUint8Array(uint32_t byteOffset, uint32_t byteLength) = 0;
78 virtual bool pushInt16Array(uint32_t byteOffset, uint32_t byteLength) = 0;
79 virtual bool pushUint16Array(uint32_t byteOffset, uint32_t byteLength) = 0;
80 virtual bool pushInt32Array(uint32_t byteOffset, uint32_t byteLength) = 0;
81 virtual bool pushUint32Array(uint32_t byteOffset, uint32_t byteLength) = 0;
82 virtual bool pushFloat32Array(uint32_t byteOffset, uint32_t byteLength) = 0;
83 virtual bool pushFloat64Array(uint32_t byteOffset, uint32_t byteLength) = 0;
84 virtual bool pushDataView(uint32_t byteOffset, uint32_t byteLength) = 0;
85 virtual bool pushArrayBuffer(PassRefPtr<ArrayBuffer>) = 0;
86 };
87
88 } // namespace WebCore
89
90 #endif // ScriptValueDeserializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698