Chromium Code Reviews| 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 13 matching lines...) Expand all Loading... | |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef ServiceWorkerGlobalScopeProxy_h | 31 #ifndef ServiceWorkerGlobalScopeProxy_h |
| 32 #define ServiceWorkerGlobalScopeProxy_h | 32 #define ServiceWorkerGlobalScopeProxy_h |
| 33 | 33 |
| 34 #include "core/inspector/ConsoleMessage.h" | |
|
vsevik
2014/08/08 13:06:29
ditto
kozyatinskiy1
2014/08/08 14:58:09
Done.
| |
| 34 #include "core/workers/WorkerReportingProxy.h" | 35 #include "core/workers/WorkerReportingProxy.h" |
| 35 #include "public/platform/WebString.h" | 36 #include "public/platform/WebString.h" |
| 36 #include "public/web/WebServiceWorkerContextProxy.h" | 37 #include "public/web/WebServiceWorkerContextProxy.h" |
| 37 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 38 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
| 39 | 40 |
| 40 namespace blink { | 41 namespace blink { |
| 41 class ExecutionContext; | 42 class ExecutionContext; |
| 42 } | 43 } |
| 43 | 44 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 70 // WebServiceWorkerContextProxy overrides: | 71 // WebServiceWorkerContextProxy overrides: |
| 71 virtual void dispatchActivateEvent(int) OVERRIDE; | 72 virtual void dispatchActivateEvent(int) OVERRIDE; |
| 72 virtual void dispatchInstallEvent(int) OVERRIDE; | 73 virtual void dispatchInstallEvent(int) OVERRIDE; |
| 73 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) OVERRID E; | 74 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) OVERRID E; |
| 74 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) OVERRIDE; | 75 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) OVERRIDE; |
| 75 virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE; | 76 virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE; |
| 76 virtual void dispatchSyncEvent(int) OVERRIDE; | 77 virtual void dispatchSyncEvent(int) OVERRIDE; |
| 77 | 78 |
| 78 // WorkerReportingProxy overrides: | 79 // WorkerReportingProxy overrides: |
| 79 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; |
| 80 virtual void reportConsoleMessage(blink::MessageSource, blink::MessageLevel, const String& message, int lineNumber, const String& sourceURL) OVERRIDE; | 81 virtual void reportConsoleMessage(PassRefPtr<blink::ConsoleMessage>) OVERRID E; |
| 81 virtual void postMessageToPageInspector(const String&) OVERRIDE; | 82 virtual void postMessageToPageInspector(const String&) OVERRIDE; |
| 82 virtual void updateInspectorStateCookie(const String&) OVERRIDE; | 83 virtual void updateInspectorStateCookie(const String&) OVERRIDE; |
| 83 virtual void workerGlobalScopeStarted(blink::WorkerGlobalScope*) OVERRIDE; | 84 virtual void workerGlobalScopeStarted(blink::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 workerGlobalScopeDestroyed() OVERRIDE; | 87 virtual void workerGlobalScopeDestroyed() OVERRIDE; |
| 87 | 88 |
| 88 private: | 89 private: |
| 89 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, blink::ExecutionContex t&, WebServiceWorkerContextClient&); | 90 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, blink::ExecutionContex t&, WebServiceWorkerContextClient&); |
| 90 | 91 |
| 91 WebEmbeddedWorkerImpl& m_embeddedWorker; | 92 WebEmbeddedWorkerImpl& m_embeddedWorker; |
| 92 blink::ExecutionContext& m_executionContext; | 93 blink::ExecutionContext& m_executionContext; |
| 93 | 94 |
| 94 WebServiceWorkerContextClient& m_client; | 95 WebServiceWorkerContextClient& m_client; |
| 95 | 96 |
| 96 blink::WorkerGlobalScope* m_workerGlobalScope; | 97 blink::WorkerGlobalScope* m_workerGlobalScope; |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace blink | 100 } // namespace blink |
| 100 | 101 |
| 101 #endif // ServiceWorkerGlobalScopeProxy_h | 102 #endif // ServiceWorkerGlobalScopeProxy_h |
| OLD | NEW |