OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 class Frame; | 47 class Frame; |
48 class HTMLDocument; | 48 class HTMLDocument; |
49 class SecurityOrigin; | 49 class SecurityOrigin; |
50 | 50 |
51 // WindowProxy represents all the per-global object state for a Frame that | 51 // WindowProxy represents all the per-global object state for a Frame that |
52 // persist between navigations. | 52 // persist between navigations. |
53 class WindowProxy final : public NoBaseWillBeGarbageCollectedFinalized<WindowPro
xy> { | 53 class WindowProxy final : public NoBaseWillBeGarbageCollectedFinalized<WindowPro
xy> { |
| 54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WindowProxy); |
54 public: | 55 public: |
55 static PassOwnPtrWillBeRawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMW
rapperWorld&); | 56 static PassOwnPtrWillBeRawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMW
rapperWorld&); |
56 | 57 |
57 ~WindowProxy(); | 58 ~WindowProxy(); |
58 DECLARE_TRACE(); | 59 DECLARE_TRACE(); |
59 | 60 |
60 v8::Local<v8::Context> context() const { return m_scriptState ? m_scriptStat
e->context() : v8::Local<v8::Context>(); } | 61 v8::Local<v8::Context> context() const { return m_scriptState ? m_scriptStat
e->context() : v8::Local<v8::Context>(); } |
61 ScriptState* scriptState() const { return m_scriptState.get(); } | 62 ScriptState* scriptState() const { return m_scriptState.get(); } |
62 | 63 |
63 // Update document object of the frame. | 64 // Update document object of the frame. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 v8::Isolate* m_isolate; | 111 v8::Isolate* m_isolate; |
111 RefPtr<ScriptState> m_scriptState; | 112 RefPtr<ScriptState> m_scriptState; |
112 RefPtr<DOMWrapperWorld> m_world; | 113 RefPtr<DOMWrapperWorld> m_world; |
113 ScopedPersistent<v8::Object> m_global; | 114 ScopedPersistent<v8::Object> m_global; |
114 ScopedPersistent<v8::Object> m_document; | 115 ScopedPersistent<v8::Object> m_document; |
115 }; | 116 }; |
116 | 117 |
117 } // namespace blink | 118 } // namespace blink |
118 | 119 |
119 #endif // WindowProxy_h | 120 #endif // WindowProxy_h |
OLD | NEW |