| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void dispatchNotificationClickEvent(int, const WebString& notificationID, co
nst WebNotificationData&, int actionIndex) override; | 80 void dispatchNotificationClickEvent(int, const WebString& notificationID, co
nst WebNotificationData&, int actionIndex) override; |
| 81 void dispatchNotificationCloseEvent(int, const WebString& notificationID, co
nst WebNotificationData&) override; | 81 void dispatchNotificationCloseEvent(int, const WebString& notificationID, co
nst WebNotificationData&) override; |
| 82 void dispatchPushEvent(int, const WebString& data) override; | 82 void dispatchPushEvent(int, const WebString& data) override; |
| 83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override
; | 83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override
; |
| 84 bool hasFetchEventHandler() override; | 84 bool hasFetchEventHandler() override; |
| 85 | 85 |
| 86 // WorkerReportingProxy overrides: | 86 // WorkerReportingProxy overrides: |
| 87 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat
ion>, int exceptionId) override; | 87 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat
ion>, int exceptionId) override; |
| 88 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, SourceLocation*) override; | 88 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, SourceLocation*) override; |
| 89 void postMessageToPageInspector(const String&) override; | 89 void postMessageToPageInspector(const String&) override; |
| 90 void didLoadWorkerScript(size_t scriptSize, size_t cachedMetadataSize) overr
ide; | |
| 91 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; | 90 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; |
| 92 void didInitializeWorkerContext() override; | 91 void didInitializeWorkerContext() override; |
| 92 void willEvaluateWorkerScript(size_t scriptSize, size_t cachedMetadataSize)
override; |
| 93 void willEvaluateImportedScript(size_t scriptSize, size_t cachedMetadataSize
) override; |
| 93 void didEvaluateWorkerScript(bool success) override; | 94 void didEvaluateWorkerScript(bool success) override; |
| 94 void didCloseWorkerGlobalScope() override; | 95 void didCloseWorkerGlobalScope() override; |
| 95 void willDestroyWorkerGlobalScope() override; | 96 void willDestroyWorkerGlobalScope() override; |
| 96 void didTerminateWorkerThread() override; | 97 void didTerminateWorkerThread() override; |
| 97 | 98 |
| 98 DECLARE_TRACE(); | 99 DECLARE_TRACE(); |
| 99 | 100 |
| 100 // Detach this proxy object entirely from the outside world, | 101 // Detach this proxy object entirely from the outside world, |
| 101 // clearing out all references. | 102 // clearing out all references. |
| 102 // | 103 // |
| (...skipping 14 matching lines...) Expand all Loading... |
| 117 Member<Document> m_document; | 118 Member<Document> m_document; |
| 118 | 119 |
| 119 WebServiceWorkerContextClient* m_client; | 120 WebServiceWorkerContextClient* m_client; |
| 120 | 121 |
| 121 Member<ServiceWorkerGlobalScope> m_workerGlobalScope; | 122 Member<ServiceWorkerGlobalScope> m_workerGlobalScope; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace blink | 125 } // namespace blink |
| 125 | 126 |
| 126 #endif // ServiceWorkerGlobalScopeProxy_h | 127 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |