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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void dispatchPushEvent(int, const WebString& data) override; | 80 void dispatchPushEvent(int, const WebString& data) override; |
81 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c
onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; | 81 void dispatchServicePortConnectEvent(WebServicePortConnectEventCallbacks*, c
onst WebURL& targetURL, const WebString& origin, WebServicePortID) override; |
82 void dispatchSyncEvent(int, const WebSyncRegistration&) override; | 82 void dispatchSyncEvent(int, const WebSyncRegistration&) override; |
83 | 83 |
84 // WorkerReportingProxy overrides: | 84 // WorkerReportingProxy overrides: |
85 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId) override; | 85 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId) override; |
86 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; | 86 void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override; |
87 void postMessageToPageInspector(const String&) override; | 87 void postMessageToPageInspector(const String&) override; |
88 void postWorkerConsoleAgentEnabled() override { } | 88 void postWorkerConsoleAgentEnabled() override { } |
89 void didEvaluateWorkerScript(bool success) override; | 89 void didEvaluateWorkerScript(bool success) override; |
90 void didInitializeWorkerContext() override; | |
91 void workerGlobalScopeStarted(WorkerGlobalScope*) override; | 90 void workerGlobalScopeStarted(WorkerGlobalScope*) override; |
92 void workerGlobalScopeClosed() override; | 91 void workerGlobalScopeClosed() override; |
93 void willDestroyWorkerGlobalScope() override; | 92 void willDestroyWorkerGlobalScope() override; |
94 void workerThreadTerminated() override; | 93 void workerThreadTerminated() override; |
95 | 94 |
96 private: | 95 private: |
97 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); | 96 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, Document&, WebServiceW
orkerContextClient&); |
98 | 97 |
99 WebEmbeddedWorkerImpl& m_embeddedWorker; | 98 WebEmbeddedWorkerImpl& m_embeddedWorker; |
100 Document& m_document; | 99 Document& m_document; |
101 | 100 |
102 WebServiceWorkerContextClient& m_client; | 101 WebServiceWorkerContextClient& m_client; |
103 | 102 |
104 ServiceWorkerGlobalScope* m_workerGlobalScope; | 103 ServiceWorkerGlobalScope* m_workerGlobalScope; |
105 }; | 104 }; |
106 | 105 |
107 } // namespace blink | 106 } // namespace blink |
108 | 107 |
109 #endif // ServiceWorkerGlobalScopeProxy_h | 108 #endif // ServiceWorkerGlobalScopeProxy_h |
OLD | NEW |