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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
265 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are | 265 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are |
266 // passed to the WebServiceWorkerClientsCallbacks implementation. | 266 // passed to the WebServiceWorkerClientsCallbacks implementation. |
267 virtual void GetClients( | 267 virtual void GetClients( |
268 const WebServiceWorkerClientQueryOptions&, | 268 const WebServiceWorkerClientQueryOptions&, |
269 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0; | 269 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0; |
270 | 270 |
271 // Ownership of the passed callbacks is transferred to the callee, callee | 271 // Ownership of the passed callbacks is transferred to the callee, callee |
272 // should delete the callbacks after calling either onSuccess or onError. | 272 // should delete the callbacks after calling either onSuccess or onError. |
273 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are | 273 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
274 // passed to the WebServiceWorkerClientsCallbacks implementation. | 274 // passed to the WebServiceWorkerClientsCallbacks implementation. |
275 virtual void OpenWindow(const WebURL&, | 275 virtual void OpenWindowForClients( |
276 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 276 const WebURL&, |
277 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | |
278 | |
279 // Similar like OpenWindowForClients above. | |
280 virtual void OpenWindowForPaymentHandler( | |
dcheng
2017/06/06 21:18:06
Btw, my point was that we should use a consistent
| |
281 const WebURL&, | |
282 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | |
277 | 283 |
278 // A suggestion to cache this metadata in association with this URL. | 284 // A suggestion to cache this metadata in association with this URL. |
279 virtual void SetCachedMetadata(const WebURL& url, | 285 virtual void SetCachedMetadata(const WebURL& url, |
280 const char* data, | 286 const char* data, |
281 size_t size) {} | 287 size_t size) {} |
282 | 288 |
283 // A suggestion to clear the cached metadata in association with this URL. | 289 // A suggestion to clear the cached metadata in association with this URL. |
284 virtual void ClearCachedMetadata(const WebURL& url) {} | 290 virtual void ClearCachedMetadata(const WebURL& url) {} |
285 | 291 |
286 // Callee receives ownership of the passed vector. | 292 // Callee receives ownership of the passed vector. |
(...skipping 29 matching lines...) Expand all Loading... | |
316 // fetch. Will only be called while an install event is in progress. | 322 // fetch. Will only be called while an install event is in progress. |
317 virtual void RegisterForeignFetchScopes( | 323 virtual void RegisterForeignFetchScopes( |
318 int install_event_id, | 324 int install_event_id, |
319 const WebVector<WebURL>& sub_scopes, | 325 const WebVector<WebURL>& sub_scopes, |
320 const WebVector<WebSecurityOrigin>& origins) = 0; | 326 const WebVector<WebSecurityOrigin>& origins) = 0; |
321 }; | 327 }; |
322 | 328 |
323 } // namespace blink | 329 } // namespace blink |
324 | 330 |
325 #endif // WebServiceWorkerContextClient_h | 331 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |