| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef WebSharedWorkerImpl_h | 31 #ifndef WebSharedWorkerImpl_h |
| 32 #define WebSharedWorkerImpl_h | 32 #define WebSharedWorkerImpl_h |
| 33 | 33 |
| 34 #include "public/web/WebSharedWorker.h" | 34 #include "public/web/WebSharedWorker.h" |
| 35 | 35 |
| 36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
| 37 #include "core/workers/WorkerLoaderProxy.h" | 37 #include "core/workers/WorkerLoaderProxy.h" |
| 38 #include "core/workers/WorkerReportingProxy.h" | 38 #include "core/workers/WorkerReportingProxy.h" |
| 39 #include "core/workers/WorkerThread.h" | 39 #include "core/workers/WorkerThread.h" |
| 40 #include "public/platform/WebAddressSpace.h" |
| 40 #include "public/web/WebContentSecurityPolicy.h" | 41 #include "public/web/WebContentSecurityPolicy.h" |
| 41 #include "public/web/WebDevToolsAgentClient.h" | 42 #include "public/web/WebDevToolsAgentClient.h" |
| 42 #include "public/web/WebFrameClient.h" | 43 #include "public/web/WebFrameClient.h" |
| 43 #include "public/web/WebSharedWorkerClient.h" | 44 #include "public/web/WebSharedWorkerClient.h" |
| 44 #include "wtf/PassOwnPtr.h" | 45 #include "wtf/PassOwnPtr.h" |
| 45 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| 48 | 49 |
| 49 class ConsoleMessage; | 50 class ConsoleMessage; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co
nst WebURLResponse& redirectResponse) override; | 91 void willSendRequest(WebLocalFrame*, unsigned identifier, WebURLRequest&, co
nst WebURLResponse& redirectResponse) override; |
| 91 void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) override; | 92 void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) override; |
| 92 bool isControlledByServiceWorker(WebDataSource&) override; | 93 bool isControlledByServiceWorker(WebDataSource&) override; |
| 93 int64_t serviceWorkerID(WebDataSource&) override; | 94 int64_t serviceWorkerID(WebDataSource&) override; |
| 94 | 95 |
| 95 // WebDevToolsAgentClient overrides. | 96 // WebDevToolsAgentClient overrides. |
| 96 void sendProtocolMessage(int sessionId, int callId, const WebString&, const
WebString&) override; | 97 void sendProtocolMessage(int sessionId, int callId, const WebString&, const
WebString&) override; |
| 97 void resumeStartup() override; | 98 void resumeStartup() override; |
| 98 | 99 |
| 99 // WebSharedWorker methods: | 100 // WebSharedWorker methods: |
| 100 void startWorkerContext(const WebURL&, const WebString& name, const WebStrin
g& contentSecurityPolicy, WebContentSecurityPolicyType) override; | 101 void startWorkerContext(const WebURL&, const WebString& name, const WebStrin
g& contentSecurityPolicy, WebContentSecurityPolicyType, WebAddressSpace) overrid
e; |
| 101 void connect(WebMessagePortChannel*) override; | 102 void connect(WebMessagePortChannel*) override; |
| 102 void terminateWorkerContext() override; | 103 void terminateWorkerContext() override; |
| 103 | 104 |
| 104 void pauseWorkerContextOnStart() override; | 105 void pauseWorkerContextOnStart() override; |
| 105 void attachDevTools(const WebString& hostId, int sessionId) override; | 106 void attachDevTools(const WebString& hostId, int sessionId) override; |
| 106 void reattachDevTools(const WebString& hostId, int sesionId, const WebString
& savedState) override; | 107 void reattachDevTools(const WebString& hostId, int sesionId, const WebString
& savedState) override; |
| 107 void detachDevTools() override; | 108 void detachDevTools() override; |
| 108 void dispatchDevToolsMessage(int sessionId, const WebString&) override; | 109 void dispatchDevToolsMessage(int sessionId, const WebString&) override; |
| 109 | 110 |
| 110 private: | 111 private: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool m_pauseWorkerContextOnStart; | 152 bool m_pauseWorkerContextOnStart; |
| 152 bool m_isPausedOnStart; | 153 bool m_isPausedOnStart; |
| 153 | 154 |
| 154 // Kept around only while main script loading is ongoing. | 155 // Kept around only while main script loading is ongoing. |
| 155 RefPtr<WorkerScriptLoader> m_mainScriptLoader; | 156 RefPtr<WorkerScriptLoader> m_mainScriptLoader; |
| 156 | 157 |
| 157 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 158 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 158 | 159 |
| 159 WebURL m_url; | 160 WebURL m_url; |
| 160 WebString m_name; | 161 WebString m_name; |
| 162 WebAddressSpace m_creationAddressSpace; |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace blink | 165 } // namespace blink |
| 164 | 166 |
| 165 #endif // WebSharedWorkerImpl_h | 167 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |