| 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 24 matching lines...) Expand all Loading... |
| 35 #include "public/platform/WebURL.h" | 35 #include "public/platform/WebURL.h" |
| 36 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall
backs.h" | 36 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall
backs.h" |
| 37 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" | 37 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
| 38 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" | 38 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
| 39 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" | 39 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" |
| 40 #include "public/web/WebDevToolsAgentClient.h" | 40 #include "public/web/WebDevToolsAgentClient.h" |
| 41 #include <v8.h> | 41 #include <v8.h> |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class ServiceRegistry; |
| 45 struct WebCrossOriginServiceWorkerClient; | 46 struct WebCrossOriginServiceWorkerClient; |
| 46 struct WebServiceWorkerClientQueryOptions; | 47 struct WebServiceWorkerClientQueryOptions; |
| 47 class WebDataSource; | 48 class WebDataSource; |
| 48 class WebServiceWorkerContextProxy; | 49 class WebServiceWorkerContextProxy; |
| 49 class WebServiceWorkerNetworkProvider; | 50 class WebServiceWorkerNetworkProvider; |
| 50 class WebServiceWorkerProvider; | 51 class WebServiceWorkerProvider; |
| 51 class WebServiceWorkerResponse; | 52 class WebServiceWorkerResponse; |
| 52 class WebString; | 53 class WebString; |
| 53 | 54 |
| 54 // This interface is implemented by the client. It is supposed to be created | 55 // This interface is implemented by the client. It is supposed to be created |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 208 |
| 208 // Ownership of the passed callbacks is transferred to the callee, callee | 209 // Ownership of the passed callbacks is transferred to the callee, callee |
| 209 // should delete the callbacks after calling either onSuccess or onError. | 210 // should delete the callbacks after calling either onSuccess or onError. |
| 210 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are | 211 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are |
| 211 // passed to the WebServiceWorkerClientsCallbacks implementation. | 212 // passed to the WebServiceWorkerClientsCallbacks implementation. |
| 212 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker
ClientCallbacks*) = 0; | 213 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker
ClientCallbacks*) = 0; |
| 213 | 214 |
| 214 // Called when the worker wants to register subscopes to handle via foreign | 215 // Called when the worker wants to register subscopes to handle via foreign |
| 215 // fetch. Will only be called while an install event is in progress. | 216 // fetch. Will only be called while an install event is in progress. |
| 216 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes,
const WebVector<WebSecurityOrigin>& origins) = 0; | 217 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes,
const WebVector<WebSecurityOrigin>& origins) = 0; |
| 218 |
| 219 // Mojo |
| 220 virtual ServiceRegistry* serviceRegistry() = 0; |
| 217 }; | 221 }; |
| 218 | 222 |
| 219 } // namespace blink | 223 } // namespace blink |
| 220 | 224 |
| 221 #endif // WebServiceWorkerContextClient_h | 225 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |