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

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

Issue 12560005: Merge 139854 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 9 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 /* 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static PassRefPtr<SerializedScriptValue> numberValue(double value, v8::Isola te* = 0); 66 static PassRefPtr<SerializedScriptValue> numberValue(double value, v8::Isola te* = 0);
67 67
68 static uint32_t wireFormatVersion(); 68 static uint32_t wireFormatVersion();
69 69
70 PassRefPtr<SerializedScriptValue> release(); 70 PassRefPtr<SerializedScriptValue> release();
71 71
72 String toWireString() const { return m_data; } 72 String toWireString() const { return m_data; }
73 73
74 // Deserializes the value (in the current context). Returns a null value in 74 // Deserializes the value (in the current context). Returns a null value in
75 // case of failure. 75 // case of failure.
76 v8::Handle<v8::Value> deserialize(MessagePortArray* = 0, v8::Isolate* = 0); 76 v8::Handle<v8::Value> deserialize(MessagePortArray* = 0);
77 v8::Handle<v8::Value> deserialize(v8::Isolate*, MessagePortArray* = 0);
77 78
78 #if ENABLE(INSPECTOR) 79 #if ENABLE(INSPECTOR)
79 ScriptValue deserializeForInspector(ScriptState*, v8::Isolate* = 0); 80 ScriptValue deserializeForInspector(ScriptState*);
80 #endif 81 #endif
81 82
82 const Vector<String>& blobURLs() const { return m_blobURLs; } 83 const Vector<String>& blobURLs() const { return m_blobURLs; }
83 84
84 // Informs the V8 about external memory allocated and owned by this object. Large values should contribute 85 // Informs the V8 about external memory allocated and owned by this object. Large values should contribute
85 // to GC counters to eventually trigger a GC, otherwise flood of postMessage () can cause OOM. 86 // to GC counters to eventually trigger a GC, otherwise flood of postMessage () can cause OOM.
86 // Ok to invoke multiple times (only adds memory once). 87 // Ok to invoke multiple times (only adds memory once).
87 // The memory registration is revoked automatically in destructor. 88 // The memory registration is revoked automatically in destructor.
88 void registerMemoryAllocatedWithCurrentScriptContext(); 89 void registerMemoryAllocatedWithCurrentScriptContext();
89 90
(...skipping 12 matching lines...) Expand all
102 103
103 String m_data; 104 String m_data;
104 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 105 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
105 Vector<String> m_blobURLs; 106 Vector<String> m_blobURLs;
106 intptr_t m_externallyAllocatedMemory; 107 intptr_t m_externallyAllocatedMemory;
107 }; 108 };
108 109
109 } // namespace WebCore 110 } // namespace WebCore
110 111
111 #endif // SerializedScriptValue_h 112 #endif // SerializedScriptValue_h
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/ScriptState.h ('k') | Source/WebCore/bindings/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698