[Webkit-unassigned] [Bug 66877] [Chromium] Add ability to do static SerializedScriptValue deserialization

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 25 10:26:50 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=66877


Darin Fisher (:fishd, Google) <fishd at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #105039|review?                     |review-
               Flag|                            |




--- Comment #2 from Darin Fisher (:fishd, Google) <fishd at chromium.org>  2011-08-25 10:26:50 PST ---
(From update of attachment 105039)
View in context: https://bugs.webkit.org/attachment.cgi?id=105039&action=review

> Source/WebKit/chromium/public/WebSerializedScriptValue.h:37
> +#include "v8/include/v8.h"

this should be #include <v8.h>; however, i think you can just forward declare
the V8 types you are using instead.  please see how this is done in other
header files.

> Source/WebKit/chromium/public/WebSerializedScriptValue.h:72
> +    static v8::Handle<v8::Value> deserializeToValue(const WebString& data);

perhaps you should just have a getter on WebSerializedScriptValue that exposes
the underlying v8 object?  this way you could also get the v8 value corresponding
to what createInvalid() produces, or if we expose WebSerializedScriptValue through
other interfaces, you'd be able to also get the v8 object from there.  (I see some
other APIs that pass WebSerializedScriptValue.)

Maybe:

  WEBKIT_EXPORT v8::Handle<v8::Value> deserialize() const;

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list