| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class HTMLDocument; | 51 class HTMLDocument; |
| 52 class SecurityOrigin; | 52 class SecurityOrigin; |
| 53 | 53 |
| 54 // V8WindowShell represents all the per-global object state for a LocalFrame tha
t | 54 // V8WindowShell represents all the per-global object state for a LocalFrame tha
t |
| 55 // persist between navigations. | 55 // persist between navigations. |
| 56 class V8WindowShell { | 56 class V8WindowShell { |
| 57 public: | 57 public: |
| 58 static PassOwnPtr<V8WindowShell> create(LocalFrame*, DOMWrapperWorld&, v8::I
solate*); | 58 static PassOwnPtr<V8WindowShell> create(LocalFrame*, DOMWrapperWorld&, v8::I
solate*); |
| 59 | 59 |
| 60 v8::Local<v8::Context> context() const { return m_scriptState ? m_scriptStat
e->context() : v8::Local<v8::Context>(); } | 60 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(); } |
| 61 | 62 |
| 62 // Update document object of the frame. | 63 // Update document object of the frame. |
| 63 void updateDocument(); | 64 void updateDocument(); |
| 64 | 65 |
| 65 void namedItemAdded(HTMLDocument*, const AtomicString&); | 66 void namedItemAdded(HTMLDocument*, const AtomicString&); |
| 66 void namedItemRemoved(HTMLDocument*, const AtomicString&); | 67 void namedItemRemoved(HTMLDocument*, const AtomicString&); |
| 67 | 68 |
| 68 // Update the security origin of a document | 69 // Update the security origin of a document |
| 69 // (e.g., after setting docoument.domain). | 70 // (e.g., after setting docoument.domain). |
| 70 void updateSecurityOrigin(SecurityOrigin*); | 71 void updateSecurityOrigin(SecurityOrigin*); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 v8::Isolate* m_isolate; | 109 v8::Isolate* m_isolate; |
| 109 RefPtr<ScriptState> m_scriptState; | 110 RefPtr<ScriptState> m_scriptState; |
| 110 RefPtr<DOMWrapperWorld> m_world; | 111 RefPtr<DOMWrapperWorld> m_world; |
| 111 ScopedPersistent<v8::Object> m_global; | 112 ScopedPersistent<v8::Object> m_global; |
| 112 ScopedPersistent<v8::Object> m_document; | 113 ScopedPersistent<v8::Object> m_document; |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace WebCore | 116 } // namespace WebCore |
| 116 | 117 |
| 117 #endif // V8WindowShell_h | 118 #endif // V8WindowShell_h |
| OLD | NEW |