OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 virtual void SkipWaiting( | 138 virtual void SkipWaiting( |
139 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; | 139 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; |
140 virtual void Claim( | 140 virtual void Claim( |
141 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; | 141 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; |
142 virtual void Focus(const WebString& client_uuid, | 142 virtual void Focus(const WebString& client_uuid, |
143 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 143 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
144 virtual void Navigate(const WebString& client_uuid, | 144 virtual void Navigate(const WebString& client_uuid, |
145 const WebURL&, | 145 const WebURL&, |
146 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; | 146 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; |
147 virtual void RegisterForeignFetchScopes( | 147 virtual void RegisterForeignFetchScopes( |
| 148 const int event_id, |
148 const WebVector<WebURL>& sub_scopes, | 149 const WebVector<WebURL>& sub_scopes, |
149 const WebVector<WebSecurityOrigin>&) = 0; | 150 const WebVector<WebSecurityOrigin>&) = 0; |
150 | 151 |
151 static const char* SupplementName(); | 152 static const char* SupplementName(); |
152 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*); | 153 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*); |
153 | 154 |
154 protected: | 155 protected: |
155 ServiceWorkerGlobalScopeClient() {} | 156 ServiceWorkerGlobalScopeClient() {} |
156 }; | 157 }; |
157 | 158 |
158 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( | 159 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( |
159 WorkerClients*, | 160 WorkerClients*, |
160 ServiceWorkerGlobalScopeClient*); | 161 ServiceWorkerGlobalScopeClient*); |
161 | 162 |
162 } // namespace blink | 163 } // namespace blink |
163 | 164 |
164 #endif // ServiceWorkerGlobalScopeClient_h | 165 #endif // ServiceWorkerGlobalScopeClient_h |
OLD | NEW |