Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebSharedWorkerImpl_h | 31 #ifndef WebSharedWorkerImpl_h |
| 32 #define WebSharedWorkerImpl_h | 32 #define WebSharedWorkerImpl_h |
| 33 | 33 |
| 34 #include "WebSharedWorker.h" | 34 #include "WebSharedWorker.h" |
| 35 | 35 |
| 36 #include "WebContentSecurityPolicy.h" | 36 #include "WebContentSecurityPolicy.h" |
| 37 #include "WebFrameClient.h" | 37 #include "WebFrameClient.h" |
| 38 #include "WebSharedWorkerClient.h" | 38 #include "WebSharedWorkerClient.h" |
| 39 #include "WebWorkerSettingsImpl.h" | |
| 39 #include "core/dom/ExecutionContext.h" | 40 #include "core/dom/ExecutionContext.h" |
| 40 #include "core/workers/WorkerLoaderProxy.h" | 41 #include "core/workers/WorkerLoaderProxy.h" |
| 41 #include "core/workers/WorkerReportingProxy.h" | 42 #include "core/workers/WorkerReportingProxy.h" |
| 42 #include "core/workers/WorkerScriptLoaderClient.h" | 43 #include "core/workers/WorkerScriptLoaderClient.h" |
| 43 #include "core/workers/WorkerThread.h" | 44 #include "core/workers/WorkerThread.h" |
| 44 #include "wtf/PassOwnPtr.h" | 45 #include "wtf/PassOwnPtr.h" |
| 45 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 46 #include "wtf/WeakPtr.h" | 47 #include "wtf/WeakPtr.h" |
| 47 | 48 |
| 48 namespace WebCore { | 49 namespace WebCore { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 virtual void terminateWorkerContext() OVERRIDE; | 99 virtual void terminateWorkerContext() OVERRIDE; |
| 99 virtual void clientDestroyed() OVERRIDE; | 100 virtual void clientDestroyed() OVERRIDE; |
| 100 | 101 |
| 101 virtual void pauseWorkerContextOnStart() OVERRIDE; | 102 virtual void pauseWorkerContextOnStart() OVERRIDE; |
| 102 virtual void resumeWorkerContext() OVERRIDE; | 103 virtual void resumeWorkerContext() OVERRIDE; |
| 103 virtual void attachDevTools() OVERRIDE; | 104 virtual void attachDevTools() OVERRIDE; |
| 104 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; | 105 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; |
| 105 virtual void detachDevTools() OVERRIDE; | 106 virtual void detachDevTools() OVERRIDE; |
| 106 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; | 107 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; |
| 107 | 108 |
| 109 virtual WebWorkerSettings* settings() OVERRIDE { return m_settings.get(); } | |
|
kinuko
2014/03/04 04:34:35
Unlike WebView case changing this after calling st
Pan
2014/03/06 08:50:56
yes, remove this impl
| |
| 110 | |
| 108 private: | 111 private: |
| 109 class Loader; | 112 class Loader; |
| 110 | 113 |
| 111 virtual ~WebSharedWorkerImpl(); | 114 virtual ~WebSharedWorkerImpl(); |
| 112 | 115 |
| 113 WebSharedWorkerClient* client() { return m_client->get(); } | 116 WebSharedWorkerClient* client() { return m_client->get(); } |
| 114 | 117 |
| 115 void setWorkerThread(PassRefPtr<WebCore::WorkerThread> thread) { m_workerThr ead = thread; } | 118 void setWorkerThread(PassRefPtr<WebCore::WorkerThread> thread) { m_workerThr ead = thread; } |
| 116 WebCore::WorkerThread* workerThread() { return m_workerThread.get(); } | 119 WebCore::WorkerThread* workerThread() { return m_workerThread.get(); } |
| 117 | 120 |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 147 | 150 |
| 148 bool m_pauseWorkerContextOnStart; | 151 bool m_pauseWorkerContextOnStart; |
| 149 bool m_attachDevToolsOnStart; | 152 bool m_attachDevToolsOnStart; |
| 150 | 153 |
| 151 // Kept around only while main script loading is ongoing. | 154 // Kept around only while main script loading is ongoing. |
| 152 OwnPtr<Loader> m_mainScriptLoader; | 155 OwnPtr<Loader> m_mainScriptLoader; |
| 153 WebURL m_url; | 156 WebURL m_url; |
| 154 WebString m_name; | 157 WebString m_name; |
| 155 WebString m_contentSecurityPolicy; | 158 WebString m_contentSecurityPolicy; |
| 156 WebContentSecurityPolicyType m_policyType; | 159 WebContentSecurityPolicyType m_policyType; |
| 160 | |
| 161 OwnPtr<WebWorkerSettingsImpl> m_settings; | |
| 157 }; | 162 }; |
| 158 | 163 |
| 159 } // namespace blink | 164 } // namespace blink |
| 160 | 165 |
| 161 #endif | 166 #endif |
| OLD | NEW |