| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PROXY_H__ | 5 #ifndef V8_PROXY_H__ |
| 6 #define V8_PROXY_H__ | 6 #define V8_PROXY_H__ |
| 7 | 7 |
| 8 #include <v8.h> | 8 #include <v8.h> |
| 9 #include "v8_index.h" | 9 #include "v8_index.h" |
| 10 #include "v8_custom.h" | 10 #include "v8_custom.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // The types of javascript errors that can be thrown. | 165 // The types of javascript errors that can be thrown. |
| 166 enum ErrorType { | 166 enum ErrorType { |
| 167 RANGE_ERROR, | 167 RANGE_ERROR, |
| 168 REFERENCE_ERROR, | 168 REFERENCE_ERROR, |
| 169 SYNTAX_ERROR, | 169 SYNTAX_ERROR, |
| 170 TYPE_ERROR, | 170 TYPE_ERROR, |
| 171 GENERAL_ERROR | 171 GENERAL_ERROR |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 explicit V8Proxy(Frame* frame) | 174 explicit V8Proxy(Frame* frame) |
| 175 : m_frame(frame), m_event_listeners("m_event_listeners"), | 175 : m_frame(frame), m_inlineCode(false), |
| 176 m_xhr_listeners("m_xhr_listeners"), m_inlineCode(false), | |
| 177 m_timerCallback(false), m_recursion(0) { } | 176 m_timerCallback(false), m_recursion(0) { } |
| 178 | 177 |
| 179 ~V8Proxy(); | 178 ~V8Proxy(); |
| 180 | 179 |
| 181 Frame* frame() { return m_frame; } | 180 Frame* frame() { return m_frame; } |
| 182 | 181 |
| 183 // Clear page-specific data, but keep the global object identify. | 182 // Clear page-specific data, but keep the global object identify. |
| 184 void clearForNavigation(); | 183 void clearForNavigation(); |
| 185 | 184 |
| 186 // Clear page-specific data before shutting down the proxy object. | 185 // Clear page-specific data before shutting down the proxy object. |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 V8Proxy::SetDOMWrapper(args.Holder(), tag, obj.get()); | 599 V8Proxy::SetDOMWrapper(args.Holder(), tag, obj.get()); |
| 601 obj->ref(); | 600 obj->ref(); |
| 602 V8Proxy::SetJSWrapperForDOMObject( | 601 V8Proxy::SetJSWrapperForDOMObject( |
| 603 obj.get(), v8::Persistent<v8::Object>::New(args.Holder())); | 602 obj.get(), v8::Persistent<v8::Object>::New(args.Holder())); |
| 604 return args.Holder(); | 603 return args.Holder(); |
| 605 } | 604 } |
| 606 | 605 |
| 607 } // namespace WebCore | 606 } // namespace WebCore |
| 608 | 607 |
| 609 #endif // V8_PROXY_H__ | 608 #endif // V8_PROXY_H__ |
| OLD | NEW |