Chromium Code Reviews| 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 OpenWindowForClients( | 275 virtual void OpenNewTab(const WebURL&, |
| 276 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | |
| 277 | |
| 278 // Similar like OpenNewTab above. | |
|
dcheng
2017/06/08 20:43:55
Nit: Similar to
gogerald1
2017/06/09 01:52:12
Done.
| |
| 279 virtual void OpenNewPopup( | |
| 276 const WebURL&, | 280 const WebURL&, |
| 277 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 281 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
| 278 | 282 |
| 279 // Similar like OpenWindowForClients above. | |
| 280 virtual void OpenWindowForPaymentHandler( | |
| 281 const WebURL&, | |
| 282 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | |
| 283 | |
| 284 // A suggestion to cache this metadata in association with this URL. | 283 // A suggestion to cache this metadata in association with this URL. |
| 285 virtual void SetCachedMetadata(const WebURL& url, | 284 virtual void SetCachedMetadata(const WebURL& url, |
| 286 const char* data, | 285 const char* data, |
| 287 size_t size) {} | 286 size_t size) {} |
| 288 | 287 |
| 289 // A suggestion to clear the cached metadata in association with this URL. | 288 // A suggestion to clear the cached metadata in association with this URL. |
| 290 virtual void ClearCachedMetadata(const WebURL& url) {} | 289 virtual void ClearCachedMetadata(const WebURL& url) {} |
| 291 | 290 |
| 292 // Callee receives ownership of the passed vector. | 291 // Callee receives ownership of the passed vector. |
| 293 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753 | 292 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 322 // fetch. Will only be called while an install event is in progress. | 321 // fetch. Will only be called while an install event is in progress. |
| 323 virtual void RegisterForeignFetchScopes( | 322 virtual void RegisterForeignFetchScopes( |
| 324 int install_event_id, | 323 int install_event_id, |
| 325 const WebVector<WebURL>& sub_scopes, | 324 const WebVector<WebURL>& sub_scopes, |
| 326 const WebVector<WebSecurityOrigin>& origins) = 0; | 325 const WebVector<WebSecurityOrigin>& origins) = 0; |
| 327 }; | 326 }; |
| 328 | 327 |
| 329 } // namespace blink | 328 } // namespace blink |
| 330 | 329 |
| 331 #endif // WebServiceWorkerContextClient_h | 330 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |