| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*); | 126 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*); |
| 127 // Tasks that are run on the main thread. | 127 // Tasks that are run on the main thread. |
| 128 void workerGlobalScopeClosedOnMainThread(); | 128 void workerGlobalScopeClosedOnMainThread(); |
| 129 void workerThreadTerminatedOnMainThread(); | 129 void workerThreadTerminatedOnMainThread(); |
| 130 | 130 |
| 131 void postMessageToPageInspectorOnMainThread(const String& message); | 131 void postMessageToPageInspectorOnMainThread(const String& message); |
| 132 | 132 |
| 133 // WorkerLoaderProxyProvider | 133 // WorkerLoaderProxyProvider |
| 134 void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionCont
extTask>) override; | 134 void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionCont
extTask>) override; |
| 135 bool postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<Ex
ecutionContextTask>) override; | 135 void postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<Ex
ecutionContextTask>) override; |
| 136 | 136 |
| 137 // 'shadow page' - created to proxy loading requests from the worker. | 137 // 'shadow page' - created to proxy loading requests from the worker. |
| 138 Persistent<ExecutionContext> m_loadingDocument; | 138 Persistent<ExecutionContext> m_loadingDocument; |
| 139 WebView* m_webView; | 139 WebView* m_webView; |
| 140 Persistent<WebLocalFrameImpl> m_mainFrame; | 140 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 141 bool m_askedToTerminate; | 141 bool m_askedToTerminate; |
| 142 | 142 |
| 143 // This one is bound to and used only on the main thread. | 143 // This one is bound to and used only on the main thread. |
| 144 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 144 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 145 | 145 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 160 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 160 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 161 | 161 |
| 162 WebURL m_url; | 162 WebURL m_url; |
| 163 WebString m_name; | 163 WebString m_name; |
| 164 WebAddressSpace m_creationAddressSpace; | 164 WebAddressSpace m_creationAddressSpace; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| 168 | 168 |
| 169 #endif // WebSharedWorkerImpl_h | 169 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |