| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 class Loader; | 110 class Loader; |
| 111 | 111 |
| 112 virtual ~WebSharedWorkerImpl(); | 112 virtual ~WebSharedWorkerImpl(); |
| 113 | 113 |
| 114 WebSharedWorkerClient* client() { return m_client->get(); } | 114 WebSharedWorkerClient* client() { return m_client->get(); } |
| 115 | 115 |
| 116 void setWorkerThread(PassRefPtr<WorkerThread> thread) { m_workerThread = thr
ead; } | 116 void setWorkerThread(PassRefPtr<WorkerThread> thread) { m_workerThread = thr
ead; } |
| 117 WorkerThread* workerThread() { return m_workerThread.get(); } | 117 WorkerThread* workerThread() { return m_workerThread.get(); } |
| 118 | 118 |
| 119 // Shuts down the worker thread. | 119 // Shuts down the worker thread. |
| 120 void stopWorkerThread(); | 120 void terminateWorkerThread(); |
| 121 | 121 |
| 122 // Creates the shadow loader used for worker network requests. | 122 // Creates the shadow loader used for worker network requests. |
| 123 void initializeLoader(); | 123 void initializeLoader(); |
| 124 | 124 |
| 125 void loadShadowPage(); | 125 void loadShadowPage(); |
| 126 void didReceiveScriptLoaderResponse(); | 126 void didReceiveScriptLoaderResponse(); |
| 127 void onScriptLoaderFinished(); | 127 void onScriptLoaderFinished(); |
| 128 | 128 |
| 129 static void connectTask(PassOwnPtr<WebMessagePortChannel>, ExecutionContext*
); | 129 static void connectTask(PassOwnPtr<WebMessagePortChannel>, ExecutionContext*
); |
| 130 // Tasks that are run on the main thread. | 130 // Tasks that are run on the main thread. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 167 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 168 | 168 |
| 169 WebURL m_url; | 169 WebURL m_url; |
| 170 WebString m_name; | 170 WebString m_name; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace blink | 173 } // namespace blink |
| 174 | 174 |
| 175 #endif // WebSharedWorkerImpl_h | 175 #endif // WebSharedWorkerImpl_h |
| OLD | NEW |