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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 eventID, const WebNotificati
onData&) override; | 76 virtual void dispatchNotificationClickEvent(int eventID, const WebNotificati
onData&) override; |
77 virtual void dispatchNotificationErrorEvent(int eventID, const WebNotificati
onData&) override; | 77 virtual void dispatchNotificationErrorEvent(int eventID, const WebNotificati
onData&) override; |
78 virtual void dispatchPushEvent(int, const WebString& data) override; | 78 virtual void dispatchPushEvent(int, const WebString& data) override; |
79 virtual void dispatchSyncEvent(int) override; | 79 virtual void dispatchSyncEvent(int) override; |
80 | 80 |
81 // WorkerReportingProxy overrides: | 81 // WorkerReportingProxy overrides: |
82 virtual void reportException(const String& errorMessage, int lineNumber, int
columnNumber, const String& sourceURL) override; | 82 virtual void reportException(const String& errorMessage, int lineNumber, int
columnNumber, const String& sourceURL, int exceptionId) override; |
83 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov
erride; | 83 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) ov
erride; |
84 virtual void postMessageToPageInspector(const String&) override; | 84 virtual void postMessageToPageInspector(const String&) override; |
85 virtual void didEvaluateWorkerScript(bool success) override; | 85 virtual void didEvaluateWorkerScript(bool success) override; |
86 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; | 86 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) override; |
87 virtual void workerGlobalScopeClosed() override; | 87 virtual void workerGlobalScopeClosed() override; |
88 virtual void willDestroyWorkerGlobalScope() override; | 88 virtual void willDestroyWorkerGlobalScope() override; |
89 virtual void workerThreadTerminated() override; | 89 virtual void workerThreadTerminated() override; |
90 | 90 |
91 private: | 91 private: |
92 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); | 92 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); |
93 | 93 |
94 WebEmbeddedWorkerImpl& m_embeddedWorker; | 94 WebEmbeddedWorkerImpl& m_embeddedWorker; |
95 Document& m_document; | 95 Document& m_document; |
96 | 96 |
97 WebServiceWorkerContextClient& m_client; | 97 WebServiceWorkerContextClient& m_client; |
98 | 98 |
99 ServiceWorkerGlobalScope* m_workerGlobalScope; | 99 ServiceWorkerGlobalScope* m_workerGlobalScope; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace blink | 102 } // namespace blink |
103 | 103 |
104 #endif // ServiceWorkerGlobalScopeProxy_h | 104 #endif // ServiceWorkerGlobalScopeProxy_h |
OLD | NEW |