| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Ownership of the returned object is transferred to the caller. | 148 // Ownership of the returned object is transferred to the caller. |
| 149 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
WebDataSource*) { return 0; } | 149 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
WebDataSource*) { return 0; } |
| 150 | 150 |
| 151 // Ownership of the passed callbacks is transferred to the callee, callee | 151 // Ownership of the passed callbacks is transferred to the callee, callee |
| 152 // should delete the callbacks after calling either onSuccess or onError. | 152 // should delete the callbacks after calling either onSuccess or onError. |
| 153 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are | 153 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are |
| 154 // passed to the WebServiceWorkerClientsCallbacks implementation. | 154 // passed to the WebServiceWorkerClientsCallbacks implementation. |
| 155 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } | 155 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } |
| 156 | 156 |
| 157 // Ownership of the passed callbacks is transferred to the callee, callee |
| 158 // should delete the callbacks after calling either onSuccess or onError. |
| 159 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
| 160 // passed to the WebServiceWorkerClientsCallbacks implementation. |
| 161 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*)
{ BLINK_ASSERT_NOT_REACHED(); } |
| 162 |
| 157 // Callee receives ownership of the passed vector. | 163 // Callee receives ownership of the passed vector. |
| 158 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 | 164 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 |
| 159 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP
ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } | 165 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP
ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } |
| 160 | 166 |
| 161 // Callee receives ownership of the passed vector. | 167 // Callee receives ownership of the passed vector. |
| 162 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 | 168 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 |
| 163 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke
rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC
HED(); } | 169 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke
rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC
HED(); } |
| 164 | 170 |
| 165 // Ownership of the passed callbacks is transferred to the callee, callee | 171 // Ownership of the passed callbacks is transferred to the callee, callee |
| 166 // should delete the callbacks after run. | 172 // should delete the callbacks after run. |
| 167 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE
RT_NOT_REACHED(); } | 173 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE
RT_NOT_REACHED(); } |
| 168 | 174 |
| 169 // Ownership of the passed callbacks is transferred to the callee, callee | 175 // Ownership of the passed callbacks is transferred to the callee, callee |
| 170 // should delete the callbacks after run. | 176 // should delete the callbacks after run. |
| 171 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } | 177 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } |
| 172 | 178 |
| 173 // Ownership of the passed callbacks is transferred to the callee, callee | 179 // Ownership of the passed callbacks is transferred to the callee, callee |
| 174 // should delete the callback after calling either onSuccess or onError. | 180 // should delete the callback after calling either onSuccess or onError. |
| 175 // FIXME: delete this method as soon as Chromium stop calling it. | 181 // FIXME: delete this method as soon as Chromium stop calling it. |
| 176 virtual void focus(int clientID, WebServiceWorkerClientFocusCallback*) { BLI
NK_ASSERT_NOT_REACHED(); } | 182 virtual void focus(int clientID, WebServiceWorkerClientFocusCallback*) { BLI
NK_ASSERT_NOT_REACHED(); } |
| 177 | 183 |
| 178 // Ownership of the passed callbacks is transferred to the callee, callee | 184 // Ownership of the passed callbacks is transferred to the callee, callee |
| 179 // should delete the callback after calling either onSuccess or onError. | 185 // should delete the callback after calling either onSuccess or onError. |
| 180 virtual void focus(int cliendID, WebServiceWorkerClientCallbacks*) { BLINK_A
SSERT_NOT_REACHED(); } | 186 virtual void focus(int cliendID, WebServiceWorkerClientCallbacks*) { BLINK_A
SSERT_NOT_REACHED(); } |
| 181 }; | 187 }; |
| 182 | 188 |
| 183 } // namespace blink | 189 } // namespace blink |
| 184 | 190 |
| 185 #endif // WebServiceWorkerContextClient_h | 191 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |