| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 void didReceiveScriptLoaderResponse(); | 125 void didReceiveScriptLoaderResponse(); |
| 126 void onScriptLoaderFinished(); | 126 void onScriptLoaderFinished(); |
| 127 | 127 |
| 128 static void connectTask(WebCore::ExecutionContext*, PassOwnPtr<WebMessagePor
tChannel>); | 128 static void connectTask(WebCore::ExecutionContext*, PassOwnPtr<WebMessagePor
tChannel>); |
| 129 // Tasks that are run on the main thread. | 129 // Tasks that are run on the main thread. |
| 130 void workerGlobalScopeClosedOnMainThread(); | 130 void workerGlobalScopeClosedOnMainThread(); |
| 131 void workerGlobalScopeDestroyedOnMainThread(); | 131 void workerGlobalScopeDestroyedOnMainThread(); |
| 132 | 132 |
| 133 // 'shadow page' - created to proxy loading requests from the worker. | 133 // 'shadow page' - created to proxy loading requests from the worker. |
| 134 RefPtr<WebCore::ExecutionContext> m_loadingDocument; | 134 RefPtrWillBePersistent<WebCore::ExecutionContext> m_loadingDocument; |
| 135 WebView* m_webView; | 135 WebView* m_webView; |
| 136 WebFrame* m_mainFrame; | 136 WebFrame* m_mainFrame; |
| 137 bool m_askedToTerminate; | 137 bool m_askedToTerminate; |
| 138 | 138 |
| 139 RefPtr<WebCore::WorkerThread> m_workerThread; | 139 RefPtr<WebCore::WorkerThread> m_workerThread; |
| 140 | 140 |
| 141 // This one's initialized and bound to the main thread. | 141 // This one's initialized and bound to the main thread. |
| 142 RefPtr<WeakReference<WebSharedWorkerClient> > m_client; | 142 RefPtr<WeakReference<WebSharedWorkerClient> > m_client; |
| 143 | 143 |
| 144 // Usually WeakPtr is created by WeakPtrFactory exposed by Client | 144 // Usually WeakPtr is created by WeakPtrFactory exposed by Client |
| 145 // class itself, but here it's implemented by Chrome so we create | 145 // class itself, but here it's implemented by Chrome so we create |
| 146 // our own WeakPtr. | 146 // our own WeakPtr. |
| 147 WeakPtr<WebSharedWorkerClient> m_clientWeakPtr; | 147 WeakPtr<WebSharedWorkerClient> m_clientWeakPtr; |
| 148 | 148 |
| 149 bool m_pauseWorkerContextOnStart; | 149 bool m_pauseWorkerContextOnStart; |
| 150 bool m_attachDevToolsOnStart; | 150 bool m_attachDevToolsOnStart; |
| 151 | 151 |
| 152 // Kept around only while main script loading is ongoing. | 152 // Kept around only while main script loading is ongoing. |
| 153 OwnPtr<Loader> m_mainScriptLoader; | 153 OwnPtr<Loader> m_mainScriptLoader; |
| 154 WebURL m_url; | 154 WebURL m_url; |
| 155 WebString m_name; | 155 WebString m_name; |
| 156 WebString m_contentSecurityPolicy; | 156 WebString m_contentSecurityPolicy; |
| 157 WebContentSecurityPolicyType m_policyType; | 157 WebContentSecurityPolicyType m_policyType; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| 161 | 161 |
| 162 #endif | 162 #endif |
| OLD | NEW |