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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // should delete the callbacks after calling either onSuccess or onError. | 293 // should delete the callbacks after calling either onSuccess or onError. |
294 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are | 294 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
295 // passed to the WebServiceWorkerClientsCallbacks implementation. | 295 // passed to the WebServiceWorkerClientsCallbacks implementation. |
296 virtual void Navigate(const WebString& uuid, | 296 virtual void Navigate(const WebString& uuid, |
297 const WebURL&, | 297 const WebURL&, |
298 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 298 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
299 | 299 |
300 // Called when the worker wants to register subscopes to handle via foreign | 300 // Called when the worker wants to register subscopes to handle via foreign |
301 // fetch. Will only be called while an install event is in progress. | 301 // fetch. Will only be called while an install event is in progress. |
302 virtual void RegisterForeignFetchScopes( | 302 virtual void RegisterForeignFetchScopes( |
| 303 int event_id, |
303 const WebVector<WebURL>& sub_scopes, | 304 const WebVector<WebURL>& sub_scopes, |
304 const WebVector<WebSecurityOrigin>& origins) = 0; | 305 const WebVector<WebSecurityOrigin>& origins) = 0; |
305 }; | 306 }; |
306 | 307 |
307 } // namespace blink | 308 } // namespace blink |
308 | 309 |
309 #endif // WebServiceWorkerContextClient_h | 310 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |