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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 const char* data, | 236 const char* data, |
237 size_t size) {} | 237 size_t size) {} |
238 | 238 |
239 // A suggestion to clear the cached metadata in association with this URL. | 239 // A suggestion to clear the cached metadata in association with this URL. |
240 virtual void clearCachedMetadata(const WebURL& url) {} | 240 virtual void clearCachedMetadata(const WebURL& url) {} |
241 | 241 |
242 // Callee receives ownership of the passed vector. | 242 // Callee receives ownership of the passed vector. |
243 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753 | 243 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753 |
244 virtual void postMessageToClient(const WebString& uuid, | 244 virtual void postMessageToClient(const WebString& uuid, |
245 const WebString&, | 245 const WebString&, |
246 WebMessagePortChannelArray*) = 0; | 246 WebMessagePortChannelArray) = 0; |
247 | 247 |
248 // Ownership of the passed callbacks is transferred to the callee, callee | 248 // Ownership of the passed callbacks is transferred to the callee, callee |
249 // should delete the callbacks after run. | 249 // should delete the callbacks after run. |
250 virtual void skipWaiting( | 250 virtual void skipWaiting( |
251 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; | 251 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; |
252 | 252 |
253 // Ownership of the passed callbacks is transferred to the callee, callee | 253 // Ownership of the passed callbacks is transferred to the callee, callee |
254 // should delete the callbacks after run. | 254 // should delete the callbacks after run. |
255 virtual void claim( | 255 virtual void claim( |
256 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; | 256 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
271 // Called when the worker wants to register subscopes to handle via foreign | 271 // Called when the worker wants to register subscopes to handle via foreign |
272 // fetch. Will only be called while an install event is in progress. | 272 // fetch. Will only be called while an install event is in progress. |
273 virtual void registerForeignFetchScopes( | 273 virtual void registerForeignFetchScopes( |
274 const WebVector<WebURL>& subScopes, | 274 const WebVector<WebURL>& subScopes, |
275 const WebVector<WebSecurityOrigin>& origins) = 0; | 275 const WebVector<WebSecurityOrigin>& origins) = 0; |
276 }; | 276 }; |
277 | 277 |
278 } // namespace blink | 278 } // namespace blink |
279 | 279 |
280 #endif // WebServiceWorkerContextClient_h | 280 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |