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 void dispatchActivateEvent(int) override; | 73 void dispatchActivateEvent(int) override; |
74 void dispatchCrossOriginConnectEvent(int, const WebCrossOriginServiceWorkerC
lient&) override; | 74 void dispatchCrossOriginConnectEvent(int, const WebCrossOriginServiceWorkerC
lient&) override; |
75 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient
&, const WebString& message, const WebMessagePortChannelArray&) override; | 75 void dispatchCrossOriginMessageEvent(const WebCrossOriginServiceWorkerClient
&, const WebString& message, const WebMessagePortChannelArray&) override; |
76 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; | 76 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; |
77 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r
egionID, const WebCircularGeofencingRegion&) override; | 77 void dispatchGeofencingEvent(int, WebGeofencingEventType, const WebString& r
egionID, const WebCircularGeofencingRegion&) override; |
78 void dispatchInstallEvent(int) override; | 78 void dispatchInstallEvent(int) override; |
79 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan
nelArray&) override; | 79 void dispatchMessageEvent(const WebString& message, const WebMessagePortChan
nelArray&) override; |
80 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo
tificationData&) override; | 80 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo
tificationData&) override; |
81 void dispatchPushEvent(int, const WebString& data) override; | 81 void dispatchPushEvent(int, const WebString& data) override; |
82 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c
onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; | 82 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c
onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; |
83 // TODO(iclelland): Remove the single-parameter version once all call sites | |
84 // have been updated. | |
85 void dispatchSyncEvent(int) override; | |
86 void dispatchSyncEvent(int, const WebSyncRegistration&) override; | 83 void dispatchSyncEvent(int, const WebSyncRegistration&) override; |
87 | 84 |
88 // WorkerReportingProxy overrides: | 85 // WorkerReportingProxy overrides: |
89 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId) override; | 86 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId) override; |
90 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; | 87 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; |
91 void postMessageToPageInspector(const String&) override; | 88 void postMessageToPageInspector(const String&) override; |
92 void postWorkerConsoleAgentEnabled() override { } | 89 void postWorkerConsoleAgentEnabled() override { } |
93 void didEvaluateWorkerScript(bool success) override; | 90 void didEvaluateWorkerScript(bool success) override; |
94 void workerGlobalScopeStarted(WorkerGlobalScope*) override; | 91 void workerGlobalScopeStarted(WorkerGlobalScope*) override; |
95 void workerGlobalScopeClosed() override; | 92 void workerGlobalScopeClosed() override; |
96 void willDestroyWorkerGlobalScope() override; | 93 void willDestroyWorkerGlobalScope() override; |
97 void workerThreadTerminated() override; | 94 void workerThreadTerminated() override; |
98 | 95 |
99 private: | 96 private: |
100 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); | 97 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); |
101 | 98 |
102 WebEmbeddedWorkerImpl& m_embeddedWorker; | 99 WebEmbeddedWorkerImpl& m_embeddedWorker; |
103 Document& m_document; | 100 Document& m_document; |
104 | 101 |
105 WebServiceWorkerContextClient& m_client; | 102 WebServiceWorkerContextClient& m_client; |
106 | 103 |
107 ServiceWorkerGlobalScope* m_workerGlobalScope; | 104 ServiceWorkerGlobalScope* m_workerGlobalScope; |
108 }; | 105 }; |
109 | 106 |
110 } // namespace blink | 107 } // namespace blink |
111 | 108 |
112 #endif // ServiceWorkerGlobalScopeProxy_h | 109 #endif // ServiceWorkerGlobalScopeProxy_h |
OLD | NEW |