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

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

Issue 1205783004: Update navigator.services API to use the new services.onconnect event [3/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-serviceside
Patch Set: remove extra space Created 5 years, 4 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // ServiceWorker specific method. Called after PushEvent (dispatched via 123 // ServiceWorker specific method. Called after PushEvent (dispatched via
124 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 124 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
125 // context. 125 // context.
126 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { } 126 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { }
127 127
128 // ServiceWorker specific method. Called after SyncEvent (dispatched via 128 // ServiceWorker specific method. Called after SyncEvent (dispatched via
129 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 129 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
130 // context. 130 // context.
131 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { } 131 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { }
132 132
133 // ServiceWorker specific method. Called after CrossOriginConnectEvent
134 // (dispatched via WebServiceWorkerContextProxy) is handled by the
135 // ServiceWorker's script context.
136 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) { }
137
138 // Ownership of the returned object is transferred to the caller. 133 // Ownership of the returned object is transferred to the caller.
139 // This is called on the main thread. 134 // This is called on the main thread.
140 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 135 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
141 136
142 // Ownership of the returned object is transferred to the caller. 137 // Ownership of the returned object is transferred to the caller.
143 // This is called on the main thread. 138 // This is called on the main thread.
144 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; } 139 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; }
145 140
146 // Ownership of the passed callbacks is transferred to the callee, callee 141 // Ownership of the passed callbacks is transferred to the callee, callee
147 // should delete the callbacks after calling either onSuccess or onError. 142 // should delete the callbacks after calling either onSuccess or onError.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Ownership of the passed callbacks is transferred to the callee, callee 179 // Ownership of the passed callbacks is transferred to the callee, callee
185 // should delete the callbacks after calling either onSuccess or onError. 180 // should delete the callbacks after calling either onSuccess or onError.
186 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are 181 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
187 // passed to the WebServiceWorkerClientsCallbacks implementation. 182 // passed to the WebServiceWorkerClientsCallbacks implementation.
188 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 183 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
189 }; 184 };
190 185
191 } // namespace blink 186 } // namespace blink
192 187
193 #endif // WebServiceWorkerContextClient_h 188 #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