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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are | 158 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are |
159 // passed to the WebServiceWorkerClientsCallbacks implementation. | 159 // passed to the WebServiceWorkerClientsCallbacks implementation. |
160 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } | 160 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } |
161 | 161 |
162 // Ownership of the passed callbacks is transferred to the callee, callee | 162 // Ownership of the passed callbacks is transferred to the callee, callee |
163 // should delete the callbacks after calling either onSuccess or onError. | 163 // should delete the callbacks after calling either onSuccess or onError. |
164 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are | 164 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
165 // passed to the WebServiceWorkerClientsCallbacks implementation. | 165 // passed to the WebServiceWorkerClientsCallbacks implementation. |
166 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*)
{ BLINK_ASSERT_NOT_REACHED(); } | 166 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*)
{ BLINK_ASSERT_NOT_REACHED(); } |
167 | 167 |
| 168 // A suggestion to cache this metadata in association with this URL. |
| 169 virtual void setCachedMetadata(const WebURL& url, const char* data, size_t s
ize) { } |
| 170 |
| 171 // A suggestion to clear the cached metadata in association with this URL. |
| 172 virtual void clearCachedMetadata(const WebURL& url) { } |
| 173 |
168 // Callee receives ownership of the passed vector. | 174 // Callee receives ownership of the passed vector. |
169 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 | 175 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 |
170 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP
ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } | 176 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP
ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } |
171 | 177 |
172 // Callee receives ownership of the passed vector. | 178 // Callee receives ownership of the passed vector. |
173 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 | 179 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175
3 |
174 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke
rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC
HED(); } | 180 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke
rClient&, const WebString&, WebMessagePortChannelArray*) { BLINK_ASSERT_NOT_REAC
HED(); } |
175 | 181 |
176 // Ownership of the passed callbacks is transferred to the callee, callee | 182 // Ownership of the passed callbacks is transferred to the callee, callee |
177 // should delete the callbacks after run. | 183 // should delete the callbacks after run. |
178 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE
RT_NOT_REACHED(); } | 184 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) { BLINK_ASSE
RT_NOT_REACHED(); } |
179 | 185 |
180 // Ownership of the passed callbacks is transferred to the callee, callee | 186 // Ownership of the passed callbacks is transferred to the callee, callee |
181 // should delete the callbacks after run. | 187 // should delete the callbacks after run. |
182 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } | 188 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) { BLINK_ASSERT_NO
T_REACHED(); } |
183 | 189 |
184 // Ownership of the passed callbacks is transferred to the callee, callee | 190 // Ownership of the passed callbacks is transferred to the callee, callee |
185 // should delete the callback after calling either onSuccess or onError. | 191 // should delete the callback after calling either onSuccess or onError. |
186 virtual void focus(int cliendID, WebServiceWorkerClientCallbacks*) { BLINK_A
SSERT_NOT_REACHED(); } | 192 virtual void focus(int cliendID, WebServiceWorkerClientCallbacks*) { BLINK_A
SSERT_NOT_REACHED(); } |
187 }; | 193 }; |
188 | 194 |
189 } // namespace blink | 195 } // namespace blink |
190 | 196 |
191 #endif // WebServiceWorkerContextClient_h | 197 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |