| 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; |
| 47 class ServiceWorkerGlobalScope; | 48 class ServiceWorkerGlobalScope; |
| 48 class WebDataConsumerHandle; | 49 class WebDataConsumerHandle; |
| 49 class WebEmbeddedWorkerImpl; | 50 class WebEmbeddedWorkerImpl; |
| 50 class WebServiceWorkerContextClient; | 51 class WebServiceWorkerContextClient; |
| 51 struct WebServiceWorkerError; | 52 struct WebServiceWorkerError; |
| 52 class WebServiceWorkerRequest; | 53 class WebServiceWorkerRequest; |
| 53 class WebURLResponse; | 54 class WebURLResponse; |
| 54 | 55 |
| 55 // This class is created and destructed on the main thread, but live most | 56 // This class is created and destructed on the main thread, but live most |
| 56 // of its time as a resident of the worker thread. | 57 // of its time as a resident of the worker thread. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void countFeature(UseCounter::Feature) override; | 127 void countFeature(UseCounter::Feature) override; |
| 127 void countDeprecation(UseCounter::Feature) override; | 128 void countDeprecation(UseCounter::Feature) override; |
| 128 void reportException(const String& errorMessage, | 129 void reportException(const String& errorMessage, |
| 129 std::unique_ptr<SourceLocation>, | 130 std::unique_ptr<SourceLocation>, |
| 130 int exceptionId) override; | 131 int exceptionId) override; |
| 131 void reportConsoleMessage(MessageSource, | 132 void reportConsoleMessage(MessageSource, |
| 132 MessageLevel, | 133 MessageLevel, |
| 133 const String& message, | 134 const String& message, |
| 134 SourceLocation*) override; | 135 SourceLocation*) override; |
| 135 void postMessageToPageInspector(const String&) override; | 136 void postMessageToPageInspector(const String&) override; |
| 136 ParentFrameTaskRunners* getParentFrameTaskRunners() override; | |
| 137 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; | 137 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; |
| 138 void didInitializeWorkerContext() override; | 138 void didInitializeWorkerContext() override; |
| 139 void willEvaluateWorkerScript(size_t scriptSize, | 139 void willEvaluateWorkerScript(size_t scriptSize, |
| 140 size_t cachedMetadataSize) override; | 140 size_t cachedMetadataSize) override; |
| 141 void willEvaluateImportedScript(size_t scriptSize, | 141 void willEvaluateImportedScript(size_t scriptSize, |
| 142 size_t cachedMetadataSize) override; | 142 size_t cachedMetadataSize) override; |
| 143 void didEvaluateWorkerScript(bool success) override; | 143 void didEvaluateWorkerScript(bool success) override; |
| 144 void didCloseWorkerGlobalScope() override; | 144 void didCloseWorkerGlobalScope() override; |
| 145 void willDestroyWorkerGlobalScope() override; | 145 void willDestroyWorkerGlobalScope() override; |
| 146 void didTerminateWorkerThread() override; | 146 void didTerminateWorkerThread() override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 173 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; | 173 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; |
| 174 | 174 |
| 175 WebServiceWorkerContextClient* m_client; | 175 WebServiceWorkerContextClient* m_client; |
| 176 | 176 |
| 177 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; | 177 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace blink | 180 } // namespace blink |
| 181 | 181 |
| 182 #endif // ServiceWorkerGlobalScopeProxy_h | 182 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |