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