Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 1156703003: ServiceWorker: Introduce ExtendableMessageEvent to replace MessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent(int syncEventID, Web ServiceWorkerEventResult result) 106 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent(int syncEventID, Web ServiceWorkerEventResult result)
107 { 107 {
108 m_client.didHandleSyncEvent(syncEventID, result); 108 m_client.didHandleSyncEvent(syncEventID, result);
109 } 109 }
110 110
111 void ServiceWorkerGlobalScopeClientImpl::didHandleCrossOriginConnectEvent(int co nnectEventID, bool acceptConnect) 111 void ServiceWorkerGlobalScopeClientImpl::didHandleCrossOriginConnectEvent(int co nnectEventID, bool acceptConnect)
112 { 112 {
113 m_client.didHandleCrossOriginConnectEvent(connectEventID, acceptConnect); 113 m_client.didHandleCrossOriginConnectEvent(connectEventID, acceptConnect);
114 } 114 }
115 115
116 void ServiceWorkerGlobalScopeClientImpl::didHandleMessageEvent(int messageEventI D, WebServiceWorkerEventResult result)
117 {
118 m_client.didHandleMessageEvent(messageEventID, result);
119 }
120
116 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(const WebString& cl ientUUID, const WebString& message, PassOwnPtr<WebMessagePortChannelArray> webCh annels) 121 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(const WebString& cl ientUUID, const WebString& message, PassOwnPtr<WebMessagePortChannelArray> webCh annels)
117 { 122 {
118 m_client.postMessageToClient(clientUUID, message, webChannels.leakPtr()); 123 m_client.postMessageToClient(clientUUID, message, webChannels.leakPtr());
119 } 124 }
120 125
121 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient(const We bCrossOriginServiceWorkerClient& client, const WebString& message, PassOwnPtr<We bMessagePortChannelArray> webChannels) 126 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient(const We bCrossOriginServiceWorkerClient& client, const WebString& message, PassOwnPtr<We bMessagePortChannelArray> webChannels)
122 { 127 {
123 m_client.postMessageToCrossOriginClient(client, message, webChannels.leakPtr ()); 128 m_client.postMessageToCrossOriginClient(client, message, webChannels.leakPtr ());
124 } 129 }
125 130
(...skipping 16 matching lines...) Expand all
142 { 147 {
143 m_client.stashMessagePort(channel, name); 148 m_client.stashMessagePort(channel, name);
144 } 149 }
145 150
146 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client) 151 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(WebServic eWorkerContextClient& client)
147 : m_client(client) 152 : m_client(client)
148 { 153 {
149 } 154 }
150 155
151 } // namespace blink 156 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeClientImpl.h ('k') | Source/web/ServiceWorkerGlobalScopeProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698