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 29 matching lines...) Expand all Loading... |
40 #include "public/web/WebEmbeddedWorker.h" | 40 #include "public/web/WebEmbeddedWorker.h" |
41 #include "public/web/WebEmbeddedWorkerStartData.h" | 41 #include "public/web/WebEmbeddedWorkerStartData.h" |
42 #include "public/web/WebFrameClient.h" | 42 #include "public/web/WebFrameClient.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class ThreadableLoadingContext; | 46 class ThreadableLoadingContext; |
47 class ParentFrameTaskRunners; | 47 class ParentFrameTaskRunners; |
48 class ServiceWorkerGlobalScopeProxy; | 48 class ServiceWorkerGlobalScopeProxy; |
49 class WebLocalFrameImpl; | 49 class WebLocalFrameImpl; |
50 class WebServiceWorkerNetworkProvider; | |
51 class WebView; | 50 class WebView; |
52 class WorkerInspectorProxy; | 51 class WorkerInspectorProxy; |
53 class WorkerScriptLoader; | 52 class WorkerScriptLoader; |
54 class WorkerThread; | 53 class WorkerThread; |
55 | 54 |
56 class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker, | 55 class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker, |
57 public WebFrameClient, | 56 public WebFrameClient, |
58 public WebDevToolsAgentClient, | 57 public WebDevToolsAgentClient, |
59 private WorkerLoaderProxyProvider { | 58 private WorkerLoaderProxyProvider { |
60 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); | 59 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ThreadableLoadingContext* getThreadableLoadingContext() override; | 109 ThreadableLoadingContext* getThreadableLoadingContext() override; |
111 | 110 |
112 WebEmbeddedWorkerStartData m_workerStartData; | 111 WebEmbeddedWorkerStartData m_workerStartData; |
113 | 112 |
114 std::unique_ptr<WebServiceWorkerContextClient> m_workerContextClient; | 113 std::unique_ptr<WebServiceWorkerContextClient> m_workerContextClient; |
115 | 114 |
116 // This is kept until startWorkerContext is called, and then passed on | 115 // This is kept until startWorkerContext is called, and then passed on |
117 // to WorkerContext. | 116 // to WorkerContext. |
118 std::unique_ptr<WebWorkerContentSettingsClientProxy> m_contentSettingsClient; | 117 std::unique_ptr<WebWorkerContentSettingsClientProxy> m_contentSettingsClient; |
119 | 118 |
120 // We retain ownership of this one which is for use on the | |
121 // main thread only. | |
122 std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider; | |
123 | |
124 // Kept around only while main script loading is ongoing. | 119 // Kept around only while main script loading is ongoing. |
125 RefPtr<WorkerScriptLoader> m_mainScriptLoader; | 120 RefPtr<WorkerScriptLoader> m_mainScriptLoader; |
126 | 121 |
127 // Owned by the main thread, but will be accessed by the worker when | 122 // Owned by the main thread, but will be accessed by the worker when |
128 // posting tasks. | 123 // posting tasks. |
129 CrossThreadPersistent<ParentFrameTaskRunners> m_mainThreadTaskRunners; | 124 CrossThreadPersistent<ParentFrameTaskRunners> m_mainThreadTaskRunners; |
130 | 125 |
131 std::unique_ptr<WorkerThread> m_workerThread; | 126 std::unique_ptr<WorkerThread> m_workerThread; |
132 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 127 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
133 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; | 128 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; |
(...skipping 18 matching lines...) Expand all Loading... |
152 DoPauseAfterDownload, | 147 DoPauseAfterDownload, |
153 IsPausedAfterDownload | 148 IsPausedAfterDownload |
154 } m_pauseAfterDownloadState; | 149 } m_pauseAfterDownloadState; |
155 | 150 |
156 WaitingForDebuggerState m_waitingForDebuggerState; | 151 WaitingForDebuggerState m_waitingForDebuggerState; |
157 }; | 152 }; |
158 | 153 |
159 } // namespace blink | 154 } // namespace blink |
160 | 155 |
161 #endif // WebEmbeddedWorkerImpl_h | 156 #endif // WebEmbeddedWorkerImpl_h |
OLD | NEW |