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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void dispatchActivateEvent(int) override; | 71 virtual void dispatchActivateEvent(int) override; |
72 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid
e; | 72 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) overrid
e; |
73 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS
tring& regionID, const WebCircularGeofencingRegion&) override; | 73 virtual void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebS
tring& regionID, const WebCircularGeofencingRegion&) override; |
74 virtual void dispatchInstallEvent(int) override; | 74 virtual void dispatchInstallEvent(int) override; |
75 virtual void dispatchMessageEvent(const WebString& message, const WebMessage
PortChannelArray&) override; | 75 virtual void dispatchMessageEvent(const WebString& message, const WebMessage
PortChannelArray&) override; |
76 virtual void dispatchNotificationClickEvent(int, const WebString& notificati
onID, const WebNotificationData&) override; | 76 virtual void dispatchNotificationClickEvent(int, const WebString& notificati
onID, const WebNotificationData&) override; |
77 virtual void dispatchPushEvent(int, const WebString& data) override; | 77 virtual void dispatchPushEvent(int, const WebString& data) override; |
78 virtual void dispatchSyncEvent(int) override; | 78 virtual void dispatchSyncEvent(int) override; |
79 | 79 |
80 // WorkerReportingProxy overrides: | 80 // WorkerReportingProxy overrides: |
81 virtual void reportException(const String& errorMessage, int lineNumber, int
columnNumber, const String& sourceURL) override; | 81 virtual void reportException(const String& errorMessage, int lineNumber, int
columnNumber, const String& sourceURL, int exceptionId) override; |
82 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov
erride; | 82 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov
erride; |
83 virtual void postMessageToPageInspector(const String&) override; | 83 virtual void postMessageToPageInspector(const String&) override; |
84 virtual void didEvaluateWorkerScript(bool success) override; | 84 virtual void didEvaluateWorkerScript(bool success) override; |
85 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; | 85 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; |
86 virtual void workerGlobalScopeClosed() override; | 86 virtual void workerGlobalScopeClosed() override; |
87 virtual void willDestroyWorkerGlobalScope() override; | 87 virtual void willDestroyWorkerGlobalScope() override; |
88 virtual void workerThreadTerminated() override; | 88 virtual void workerThreadTerminated() override; |
89 | 89 |
90 private: | 90 private: |
91 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); | 91 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); |
92 | 92 |
93 WebEmbeddedWorkerImpl& m_embeddedWorker; | 93 WebEmbeddedWorkerImpl& m_embeddedWorker; |
94 Document& m_document; | 94 Document& m_document; |
95 | 95 |
96 WebServiceWorkerContextClient& m_client; | 96 WebServiceWorkerContextClient& m_client; |
97 | 97 |
98 ServiceWorkerGlobalScope* m_workerGlobalScope; | 98 ServiceWorkerGlobalScope* m_workerGlobalScope; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif // ServiceWorkerGlobalScopeProxy_h | 103 #endif // ServiceWorkerGlobalScopeProxy_h |
OLD | NEW |