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