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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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*); |
73 | 73 |
74 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } | 74 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo
ntextData(); } |
75 bool isGlobalInitialized() { return !m_global.isEmpty(); } | 75 bool isGlobalInitialized() { return !m_global.isEmpty(); } |
76 | 76 |
77 bool initializeIfNeeded(); | 77 bool initializeIfNeeded(); |
78 void updateDocumentWrapper(v8::Local<v8::Object> wrapper); | 78 void updateDocumentWrapper(v8::Local<v8::Object> wrapper); |
79 | 79 |
80 void clearForNavigation(); | 80 void clearWindowProxy(); |
81 void clearForClose(); | |
82 | 81 |
83 v8::Local<v8::Object> releaseGlobal(); | 82 v8::Local<v8::Object> releaseGlobal(); |
84 void setGlobal(v8::Local<v8::Object>); | 83 void setGlobal(v8::Local<v8::Object>); |
85 | 84 |
86 DOMWrapperWorld& world() { return *m_world; } | 85 DOMWrapperWorld& world() { return *m_world; } |
87 | 86 |
88 private: | 87 private: |
89 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*); | 88 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*); |
90 bool initialize(); | 89 bool initialize(); |
91 | 90 |
(...skipping 20 matching lines...) Expand all Loading... |
112 v8::Isolate* m_isolate; | 111 v8::Isolate* m_isolate; |
113 RefPtr<ScriptState> m_scriptState; | 112 RefPtr<ScriptState> m_scriptState; |
114 RefPtr<DOMWrapperWorld> m_world; | 113 RefPtr<DOMWrapperWorld> m_world; |
115 ScopedPersistent<v8::Object> m_global; | 114 ScopedPersistent<v8::Object> m_global; |
116 ScopedPersistent<v8::Object> m_document; | 115 ScopedPersistent<v8::Object> m_document; |
117 }; | 116 }; |
118 | 117 |
119 } // namespace blink | 118 } // namespace blink |
120 | 119 |
121 #endif // WindowProxy_h | 120 #endif // WindowProxy_h |
OLD | NEW |