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 OpenWindow(const WebURL& redirect_url, |
276 const WebURL&, | |
please use gerrit instead
2017/05/25 17:56:13
url_to_open
gogerald1
2017/05/29 22:13:16
Done.
| |
276 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 277 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
277 | 278 |
278 // A suggestion to cache this metadata in association with this URL. | 279 // A suggestion to cache this metadata in association with this URL. |
279 virtual void SetCachedMetadata(const WebURL& url, | 280 virtual void SetCachedMetadata(const WebURL& url, |
280 const char* data, | 281 const char* data, |
281 size_t size) {} | 282 size_t size) {} |
282 | 283 |
283 // A suggestion to clear the cached metadata in association with this URL. | 284 // A suggestion to clear the cached metadata in association with this URL. |
284 virtual void ClearCachedMetadata(const WebURL& url) {} | 285 virtual void ClearCachedMetadata(const WebURL& url) {} |
285 | 286 |
(...skipping 30 matching lines...) Expand all Loading... | |
316 // fetch. Will only be called while an install event is in progress. | 317 // fetch. Will only be called while an install event is in progress. |
317 virtual void RegisterForeignFetchScopes( | 318 virtual void RegisterForeignFetchScopes( |
318 int install_event_id, | 319 int install_event_id, |
319 const WebVector<WebURL>& sub_scopes, | 320 const WebVector<WebURL>& sub_scopes, |
320 const WebVector<WebSecurityOrigin>& origins) = 0; | 321 const WebVector<WebSecurityOrigin>& origins) = 0; |
321 }; | 322 }; |
322 | 323 |
323 } // namespace blink | 324 } // namespace blink |
324 | 325 |
325 #endif // WebServiceWorkerContextClient_h | 326 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |