| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 WebEmbeddedWorkerImpl_h | 31 #ifndef WebEmbeddedWorkerImpl_h |
| 32 #define WebEmbeddedWorkerImpl_h | 32 #define WebEmbeddedWorkerImpl_h |
| 33 | 33 |
| 34 #include "public/web/WebContentSecurityPolicy.h" | 34 #include "public/web/WebContentSecurityPolicy.h" |
| 35 #include "public/web/WebEmbeddedWorker.h" | 35 #include "public/web/WebEmbeddedWorker.h" |
| 36 #include "public/web/WebEmbeddedWorkerStartData.h" | 36 #include "public/web/WebEmbeddedWorkerStartData.h" |
| 37 #include "public/web/WebFrameClient.h" | 37 #include "public/web/WebFrameClient.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace blink { |
| 40 class WorkerScriptLoader; | 40 class WorkerScriptLoader; |
| 41 class WorkerThread; | 41 class WorkerThread; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class ServiceWorkerGlobalScopeProxy; | 46 class ServiceWorkerGlobalScopeProxy; |
| 47 class WebServiceWorkerNetworkProvider; | 47 class WebServiceWorkerNetworkProvider; |
| 48 class WebView; | 48 class WebView; |
| 49 | 49 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // to WorkerContext. | 91 // to WorkerContext. |
| 92 OwnPtr<WebWorkerPermissionClientProxy> m_permissionClient; | 92 OwnPtr<WebWorkerPermissionClientProxy> m_permissionClient; |
| 93 | 93 |
| 94 // We retain ownership of this one which is for use on the | 94 // We retain ownership of this one which is for use on the |
| 95 // main thread only. | 95 // main thread only. |
| 96 OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider; | 96 OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 97 | 97 |
| 98 // Kept around only while main script loading is ongoing. | 98 // Kept around only while main script loading is ongoing. |
| 99 OwnPtr<Loader> m_mainScriptLoader; | 99 OwnPtr<Loader> m_mainScriptLoader; |
| 100 | 100 |
| 101 RefPtr<WebCore::WorkerThread> m_workerThread; | 101 RefPtr<blink::WorkerThread> m_workerThread; |
| 102 OwnPtr<LoaderProxy> m_loaderProxy; | 102 OwnPtr<LoaderProxy> m_loaderProxy; |
| 103 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; | 103 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; |
| 104 | 104 |
| 105 // 'shadow page' - created to proxy loading requests from the worker. | 105 // 'shadow page' - created to proxy loading requests from the worker. |
| 106 // Both WebView and WebFrame objects are close()'ed (where they're | 106 // Both WebView and WebFrame objects are close()'ed (where they're |
| 107 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they | 107 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they |
| 108 // are guaranteed to exist while this object is around. | 108 // are guaranteed to exist while this object is around. |
| 109 WebView* m_webView; | 109 WebView* m_webView; |
| 110 WebFrame* m_mainFrame; | 110 WebFrame* m_mainFrame; |
| 111 | 111 |
| 112 bool m_askedToTerminate; | 112 bool m_askedToTerminate; |
| 113 | 113 |
| 114 enum { | 114 enum { |
| 115 DontPauseAfterDownload, | 115 DontPauseAfterDownload, |
| 116 DoPauseAfterDownload, | 116 DoPauseAfterDownload, |
| 117 IsPausedAfterDownload | 117 IsPausedAfterDownload |
| 118 } m_pauseAfterDownloadState; | 118 } m_pauseAfterDownloadState; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace blink | 121 } // namespace blink |
| 122 | 122 |
| 123 #endif // WebEmbeddedWorkerImpl_h | 123 #endif // WebEmbeddedWorkerImpl_h |
| OLD | NEW |