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

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

Issue 850413002: [ServiceWorker] Implement ServiceWorkerClients.openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_info_cb
Patch Set: Created 5 years, 10 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) 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Ownership of the returned object is transferred to the caller. 147 // Ownership of the returned object is transferred to the caller.
148 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return 0; } 148 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return 0; }
149 149
150 // Ownership of the passed callbacks is transferred to the callee, callee 150 // Ownership of the passed callbacks is transferred to the callee, callee
151 // should delete the callbacks after calling either onSuccess or onError. 151 // should delete the callbacks after calling either onSuccess or onError.
152 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are 152 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are
153 // passed to the WebServiceWorkerClientsCallbacks implementation. 153 // passed to the WebServiceWorkerClientsCallbacks implementation.
154 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); } 154 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); }
155 155
156 // Ownership of the passed callbacks is transferred to the callee, callee
157 // should delete the callbacks after calling either onSuccess or onError.
158 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
159 // passed to the WebServiceWorkerClientsCallbacks implementation.
Michael van Ouwerkerk 2015/01/30 14:56:28 WebServiceWorkerClientCallbacks
160 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
161
156 // Callee receives ownership of the passed vector. 162 // Callee receives ownership of the passed vector.
157 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3 163 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3
158 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } 164 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); }
159 165
160 // Callee receives ownership of the passed vector. 166 // Callee receives ownership of the passed vector.
161 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3 167 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3
162 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC HED(); } 168 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC HED(); }
163 169
164 // Ownership of the passed callbacks is transferred to the callee, callee 170 // Ownership of the passed callbacks is transferred to the callee, callee
165 // should delete the callbacks after run. 171 // should delete the callbacks after run.
166 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE RT_NOT_REACHED(); } 172 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE RT_NOT_REACHED(); }
167 173
168 // Ownership of the passed callbacks is transferred to the callee, callee 174 // Ownership of the passed callbacks is transferred to the callee, callee
169 // should delete the callback after calling either onSuccess or onError. 175 // should delete the callback after calling either onSuccess or onError.
170 virtual void focus(int clientID, WebServiceWorkerClientFocusCallback* callba ck) 176 virtual void focus(int clientID, WebServiceWorkerClientFocusCallback* callba ck)
171 { 177 {
172 // FIXME: call BLINK_ASSERT_NOT_REACHED() when Chromium implementation 178 // FIXME: call BLINK_ASSERT_NOT_REACHED() when Chromium implementation
173 // is present. https://crbug.com/437149 179 // is present. https://crbug.com/437149
174 bool result = true; 180 bool result = true;
175 callback->onSuccess(&result); 181 callback->onSuccess(&result);
176 delete callback; 182 delete callback;
177 } 183 }
178 }; 184 };
179 185
180 } // namespace blink 186 } // namespace blink
181 187
182 #endif // WebServiceWorkerContextClient_h 188 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698