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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 USING_FAST_MALLOC_WILL_BE_REMOVED(WindowProxy); | 54 USING_FAST_MALLOC_WILL_BE_REMOVED(WindowProxy); |
55 public: | 55 public: |
56 static PassOwnPtrWillBeRawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMW
rapperWorld&); | 56 static PassOwnPtrWillBeRawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMW
rapperWorld&); |
57 | 57 |
58 ~WindowProxy(); | 58 ~WindowProxy(); |
59 DECLARE_TRACE(); | 59 DECLARE_TRACE(); |
60 | 60 |
61 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ?
m_scriptState->context() : v8::Local<v8::Context>(); } | 61 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ?
m_scriptState->context() : v8::Local<v8::Context>(); } |
62 ScriptState* scriptState() const { return m_scriptState.get(); } | 62 ScriptState* getScriptState() const { return m_scriptState.get(); } |
63 | 63 |
64 // Update document object of the frame. | 64 // Update document object of the frame. |
65 void updateDocument(); | 65 void updateDocument(); |
66 | 66 |
67 void namedItemAdded(HTMLDocument*, const AtomicString&); | 67 void namedItemAdded(HTMLDocument*, const AtomicString&); |
68 void namedItemRemoved(HTMLDocument*, const AtomicString&); | 68 void namedItemRemoved(HTMLDocument*, const AtomicString&); |
69 | 69 |
70 // Update the security origin of a document | 70 // Update the security origin of a document |
71 // (e.g., after setting docoument.domain). | 71 // (e.g., after setting docoument.domain). |
72 void updateSecurityOrigin(SecurityOrigin*); | 72 void updateSecurityOrigin(SecurityOrigin*); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 v8::Isolate* m_isolate; | 113 v8::Isolate* m_isolate; |
114 RefPtr<ScriptState> m_scriptState; | 114 RefPtr<ScriptState> m_scriptState; |
115 RefPtr<DOMWrapperWorld> m_world; | 115 RefPtr<DOMWrapperWorld> m_world; |
116 ScopedPersistent<v8::Object> m_global; | 116 ScopedPersistent<v8::Object> m_global; |
117 ScopedPersistent<v8::Object> m_document; | 117 ScopedPersistent<v8::Object> m_document; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace blink | 120 } // namespace blink |
121 | 121 |
122 #endif // WindowProxy_h | 122 #endif // WindowProxy_h |
OLD | NEW |