OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 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. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebSerializedScriptValue_h | 31 #ifndef WebSerializedScriptValue_h |
32 #define WebSerializedScriptValue_h | 32 #define WebSerializedScriptValue_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
36 | 36 |
37 namespace WebCore { class SerializedScriptValue; } | 37 namespace blink { class SerializedScriptValue; } |
38 | 38 |
39 namespace v8 { | 39 namespace v8 { |
40 class Value; | 40 class Value; |
41 template <class T> class Handle; | 41 template <class T> class Handle; |
42 } | 42 } |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 class WebString; | 45 class WebString; |
46 | 46 |
47 // FIXME: Should this class be in platform? | 47 // FIXME: Should this class be in platform? |
(...skipping 21 matching lines...) Expand all Loading... |
69 | 69 |
70 bool isNull() const { return m_private.isNull(); } | 70 bool isNull() const { return m_private.isNull(); } |
71 | 71 |
72 // Returns a string representation of the WebSerializedScriptValue. | 72 // Returns a string representation of the WebSerializedScriptValue. |
73 BLINK_EXPORT WebString toString() const; | 73 BLINK_EXPORT WebString toString() const; |
74 | 74 |
75 // Convert the serialized value to a parsed v8 value. | 75 // Convert the serialized value to a parsed v8 value. |
76 BLINK_EXPORT v8::Handle<v8::Value> deserialize(); | 76 BLINK_EXPORT v8::Handle<v8::Value> deserialize(); |
77 | 77 |
78 #if BLINK_IMPLEMENTATION | 78 #if BLINK_IMPLEMENTATION |
79 WebSerializedScriptValue(const WTF::PassRefPtr<WebCore::SerializedScriptValu
e>&); | 79 WebSerializedScriptValue(const WTF::PassRefPtr<blink::SerializedScriptValue>
&); |
80 WebSerializedScriptValue& operator=(const WTF::PassRefPtr<WebCore::Serialize
dScriptValue>&); | 80 WebSerializedScriptValue& operator=(const WTF::PassRefPtr<blink::SerializedS
criptValue>&); |
81 operator WTF::PassRefPtr<WebCore::SerializedScriptValue>() const; | 81 operator WTF::PassRefPtr<blink::SerializedScriptValue>() const; |
82 #endif | 82 #endif |
83 | 83 |
84 private: | 84 private: |
85 WebPrivatePtr<WebCore::SerializedScriptValue> m_private; | 85 WebPrivatePtr<blink::SerializedScriptValue> m_private; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |