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 26 matching lines...) Expand all Loading... |
37 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
38 #include "public/platform/WebString.h" | 38 #include "public/platform/WebString.h" |
39 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" | 39 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" |
40 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
41 #include <memory> | 41 #include <memory> |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class Document; | 45 class Document; |
46 class FetchEvent; | 46 class FetchEvent; |
47 class ParentFrameTaskRunners; | |
48 class ServiceWorkerGlobalScope; | 47 class ServiceWorkerGlobalScope; |
49 class WebDataConsumerHandle; | 48 class WebDataConsumerHandle; |
50 class WebEmbeddedWorkerImpl; | 49 class WebEmbeddedWorkerImpl; |
51 class WebServiceWorkerContextClient; | 50 class WebServiceWorkerContextClient; |
52 struct WebServiceWorkerError; | 51 struct WebServiceWorkerError; |
53 class WebServiceWorkerRequest; | 52 class WebServiceWorkerRequest; |
54 class WebURLResponse; | 53 class WebURLResponse; |
55 | 54 |
56 // This class is created and destructed on the main thread, but live most | 55 // This class is created and destructed on the main thread, but live most |
57 // of its time as a resident of the worker thread. | 56 // of its time as a resident of the worker thread. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 156 |
158 WebServiceWorkerContextClient& client() const; | 157 WebServiceWorkerContextClient& client() const; |
159 Document& document() const; | 158 Document& document() const; |
160 ServiceWorkerGlobalScope* workerGlobalScope() const; | 159 ServiceWorkerGlobalScope* workerGlobalScope() const; |
161 | 160 |
162 // Non-null until the WebEmbeddedWorkerImpl explicitly detach()es | 161 // Non-null until the WebEmbeddedWorkerImpl explicitly detach()es |
163 // as part of its finalization. | 162 // as part of its finalization. |
164 WebEmbeddedWorkerImpl* m_embeddedWorker; | 163 WebEmbeddedWorkerImpl* m_embeddedWorker; |
165 Member<Document> m_document; | 164 Member<Document> m_document; |
166 | 165 |
167 Member<ParentFrameTaskRunners> m_parentFrameTaskRunners; | |
168 | |
169 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; | 166 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; |
170 | 167 |
171 WebServiceWorkerContextClient* m_client; | 168 WebServiceWorkerContextClient* m_client; |
172 | 169 |
173 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; | 170 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; |
174 }; | 171 }; |
175 | 172 |
176 } // namespace blink | 173 } // namespace blink |
177 | 174 |
178 #endif // ServiceWorkerGlobalScopeProxy_h | 175 #endif // ServiceWorkerGlobalScopeProxy_h |
OLD | NEW |