| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Shuts down the worker thread. | 115 // Shuts down the worker thread. |
| 116 void terminateWorkerThread(); | 116 void terminateWorkerThread(); |
| 117 | 117 |
| 118 // Creates the shadow loader used for worker network requests. | 118 // Creates the shadow loader used for worker network requests. |
| 119 void initializeLoader(); | 119 void initializeLoader(); |
| 120 | 120 |
| 121 void loadShadowPage(); | 121 void loadShadowPage(); |
| 122 void didReceiveScriptLoaderResponse(); | 122 void didReceiveScriptLoaderResponse(); |
| 123 void onScriptLoaderFinished(); | 123 void onScriptLoaderFinished(); |
| 124 | 124 |
| 125 static void connectTask(PassOwnPtr<WebMessagePortChannel>, ExecutionContext*
); | 125 static void connectTask(WebMessagePortChannelUniquePtr, ExecutionContext*); |
| 126 // Tasks that are run on the main thread. | 126 // Tasks that are run on the main thread. |
| 127 void workerGlobalScopeClosedOnMainThread(); | 127 void workerGlobalScopeClosedOnMainThread(); |
| 128 void workerThreadTerminatedOnMainThread(); | 128 void workerThreadTerminatedOnMainThread(); |
| 129 | 129 |
| 130 void postMessageToPageInspectorOnMainThread(const String& message); | 130 void postMessageToPageInspectorOnMainThread(const String& message); |
| 131 | 131 |
| 132 // WorkerLoaderProxyProvider | 132 // WorkerLoaderProxyProvider |
| 133 void postTaskToLoader(std::unique_ptr<ExecutionContextTask>) override; | 133 void postTaskToLoader(std::unique_ptr<ExecutionContextTask>) override; |
| 134 bool postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask>) over
ride; | 134 bool postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask>) over
ride; |
| 135 | 135 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 157 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 157 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 158 | 158 |
| 159 WebURL m_url; | 159 WebURL m_url; |
| 160 WebString m_name; | 160 WebString m_name; |
| 161 WebAddressSpace m_creationAddressSpace; | 161 WebAddressSpace m_creationAddressSpace; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| 165 | 165 |
| 166 #endif // WebSharedWorkerImpl_h | 166 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |