| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 #include "public/web/WebContentSecurityPolicy.h" | 36 #include "public/web/WebContentSecurityPolicy.h" |
| 37 #include "public/web/WebDevToolsAgentClient.h" | 37 #include "public/web/WebDevToolsAgentClient.h" |
| 38 #include "public/web/WebEmbeddedWorker.h" | 38 #include "public/web/WebEmbeddedWorker.h" |
| 39 #include "public/web/WebEmbeddedWorkerStartData.h" | 39 #include "public/web/WebEmbeddedWorkerStartData.h" |
| 40 #include "public/web/WebFrameClient.h" | 40 #include "public/web/WebFrameClient.h" |
| 41 #include <memory> | 41 #include <memory> |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class ParentFrameTaskRunners; |
| 45 class ServiceWorkerGlobalScopeProxy; | 46 class ServiceWorkerGlobalScopeProxy; |
| 46 class WebLocalFrameImpl; | 47 class WebLocalFrameImpl; |
| 47 class WebServiceWorkerNetworkProvider; | 48 class WebServiceWorkerNetworkProvider; |
| 48 class WebView; | 49 class WebView; |
| 49 class WorkerInspectorProxy; | 50 class WorkerInspectorProxy; |
| 50 class WorkerScriptLoader; | 51 class WorkerScriptLoader; |
| 51 class WorkerThread; | 52 class WorkerThread; |
| 52 | 53 |
| 53 class WebEmbeddedWorkerImpl final | 54 class WebEmbeddedWorkerImpl final |
| 54 : public WebEmbeddedWorker | 55 : public WebEmbeddedWorker |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // to WorkerContext. | 103 // to WorkerContext. |
| 103 std::unique_ptr<WebWorkerContentSettingsClientProxy> m_contentSettingsClient
; | 104 std::unique_ptr<WebWorkerContentSettingsClientProxy> m_contentSettingsClient
; |
| 104 | 105 |
| 105 // We retain ownership of this one which is for use on the | 106 // We retain ownership of this one which is for use on the |
| 106 // main thread only. | 107 // main thread only. |
| 107 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | 108 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; |
| 108 | 109 |
| 109 // Kept around only while main script loading is ongoing. | 110 // Kept around only while main script loading is ongoing. |
| 110 RefPtr<WorkerScriptLoader> m_mainScriptLoader; | 111 RefPtr<WorkerScriptLoader> m_mainScriptLoader; |
| 111 | 112 |
| 113 std::unique_ptr<ParentFrameTaskRunners> m_mainThreadTaskRunners; |
| 114 |
| 112 std::unique_ptr<WorkerThread> m_workerThread; | 115 std::unique_ptr<WorkerThread> m_workerThread; |
| 113 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 116 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 114 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; | 117 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; |
| 115 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 118 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 116 | 119 |
| 117 // 'shadow page' - created to proxy loading requests from the worker. | 120 // 'shadow page' - created to proxy loading requests from the worker. |
| 118 // Both WebView and WebFrame objects are close()'ed (where they're | 121 // Both WebView and WebFrame objects are close()'ed (where they're |
| 119 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they | 122 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they |
| 120 // are guaranteed to exist while this object is around. | 123 // are guaranteed to exist while this object is around. |
| 121 WebView* m_webView; | 124 WebView* m_webView; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 134 DoPauseAfterDownload, | 137 DoPauseAfterDownload, |
| 135 IsPausedAfterDownload | 138 IsPausedAfterDownload |
| 136 } m_pauseAfterDownloadState; | 139 } m_pauseAfterDownloadState; |
| 137 | 140 |
| 138 WaitingForDebuggerState m_waitingForDebuggerState; | 141 WaitingForDebuggerState m_waitingForDebuggerState; |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 } // namespace blink | 144 } // namespace blink |
| 142 | 145 |
| 143 #endif // WebEmbeddedWorkerImpl_h | 146 #endif // WebEmbeddedWorkerImpl_h |
| OLD | NEW |