| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // should delete the callbacks after calling either onSuccess or onError. | 305 // should delete the callbacks after calling either onSuccess or onError. |
| 306 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are | 306 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
| 307 // passed to the WebServiceWorkerClientsCallbacks implementation. | 307 // passed to the WebServiceWorkerClientsCallbacks implementation. |
| 308 virtual void Navigate(const WebString& uuid, | 308 virtual void Navigate(const WebString& uuid, |
| 309 const WebURL&, | 309 const WebURL&, |
| 310 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 310 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
| 311 | 311 |
| 312 // Called when the worker wants to register subscopes to handle via foreign | 312 // Called when the worker wants to register subscopes to handle via foreign |
| 313 // fetch. Will only be called while an install event is in progress. | 313 // fetch. Will only be called while an install event is in progress. |
| 314 virtual void RegisterForeignFetchScopes( | 314 virtual void RegisterForeignFetchScopes( |
| 315 int install_event_id, |
| 315 const WebVector<WebURL>& sub_scopes, | 316 const WebVector<WebURL>& sub_scopes, |
| 316 const WebVector<WebSecurityOrigin>& origins) = 0; | 317 const WebVector<WebSecurityOrigin>& origins) = 0; |
| 317 }; | 318 }; |
| 318 | 319 |
| 319 } // namespace blink | 320 } // namespace blink |
| 320 | 321 |
| 321 #endif // WebServiceWorkerContextClient_h | 322 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |