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

Side by Side Diff: public/web/WebServiceWorkerContextClient.h

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
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // ServiceWorker specific method. Called after SyncEvent (dispatched via 134 // ServiceWorker specific method. Called after SyncEvent (dispatched via
135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
136 // context. 136 // context.
137 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { } 137 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { }
138 138
139 // ServiceWorker specific method. Called after CrossOriginConnectEvent 139 // ServiceWorker specific method. Called after CrossOriginConnectEvent
140 // (dispatched via WebServiceWorkerContextProxy) is handled by the 140 // (dispatched via WebServiceWorkerContextProxy) is handled by the
141 // ServiceWorker's script context. 141 // ServiceWorker's script context.
142 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) { } 142 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) { }
143 143
144 // ServiceWorker specific method. Called after ExtendableMessageEvent
145 // (dispatched via WebServiceWorkerContextProxy) is handled by the
146 // ServiceWorker's script context.
147 virtual void didHandleMessageEvent(int messageEventID, WebServiceWorkerEvent Result result) {}
148
144 // Ownership of the returned object is transferred to the caller. 149 // Ownership of the returned object is transferred to the caller.
145 // This is called on the main thread. 150 // This is called on the main thread.
146 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 151 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
147 152
148 // Ownership of the returned object is transferred to the caller. 153 // Ownership of the returned object is transferred to the caller.
149 // This is called on the main thread. 154 // This is called on the main thread.
150 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; } 155 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; }
151 156
152 // Ownership of the passed callbacks is transferred to the callee, callee 157 // Ownership of the passed callbacks is transferred to the callee, callee
153 // should delete the callbacks after calling either onSuccess or onError. 158 // should delete the callbacks after calling either onSuccess or onError.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // should delete the callback after calling either onSuccess or onError. 192 // should delete the callback after calling either onSuccess or onError.
188 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 193 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
189 194
190 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee . 195 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee .
191 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name) { BLINK_ASSERT_NOT_REACHED(); } 196 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name) { BLINK_ASSERT_NOT_REACHED(); }
192 }; 197 };
193 198
194 } // namespace blink 199 } // namespace blink
195 200
196 #endif // WebServiceWorkerContextClient_h 201 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/web/WebServiceWorkerContextProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698