OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Called some time after the worker has started. Attempts to use the | 86 // Called some time after the worker has started. Attempts to use the |
87 // ServiceRegistry to connect to services before this method is called are | 87 // ServiceRegistry to connect to services before this method is called are |
88 // queued up and will resolve after this method is called. | 88 // queued up and will resolve after this method is called. |
89 void BindServiceRegistry( | 89 void BindServiceRegistry( |
90 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 90 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
91 mojo::ServiceProviderPtr exposed_services); | 91 mojo::ServiceProviderPtr exposed_services); |
92 | 92 |
93 // WebServiceWorkerContextClient overrides. | 93 // WebServiceWorkerContextClient overrides. |
94 blink::WebURL scope() const override; | 94 blink::WebURL scope() const override; |
| 95 void getClient(const blink::WebString&, |
| 96 blink::WebServiceWorkerClientCallbacks*) override; |
95 void getClients(const blink::WebServiceWorkerClientQueryOptions&, | 97 void getClients(const blink::WebServiceWorkerClientQueryOptions&, |
96 blink::WebServiceWorkerClientsCallbacks*) override; | 98 blink::WebServiceWorkerClientsCallbacks*) override; |
97 void openWindow(const blink::WebURL&, | 99 void openWindow(const blink::WebURL&, |
98 blink::WebServiceWorkerClientCallbacks*) override; | 100 blink::WebServiceWorkerClientCallbacks*) override; |
99 void setCachedMetadata(const blink::WebURL&, | 101 void setCachedMetadata(const blink::WebURL&, |
100 const char* data, | 102 const char* data, |
101 size_t size) override; | 103 size_t size) override; |
102 void clearCachedMetadata(const blink::WebURL&) override; | 104 void clearCachedMetadata(const blink::WebURL&) override; |
103 void workerReadyForInspection() override; | 105 void workerReadyForInspection() override; |
104 | 106 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 const blink::WebCircularGeofencingRegion& region); | 202 const blink::WebCircularGeofencingRegion& region); |
201 void OnPostMessage( | 203 void OnPostMessage( |
202 const base::string16& message, | 204 const base::string16& message, |
203 const std::vector<TransferredMessagePort>& sent_message_ports, | 205 const std::vector<TransferredMessagePort>& sent_message_ports, |
204 const std::vector<int>& new_routing_ids); | 206 const std::vector<int>& new_routing_ids); |
205 void OnCrossOriginMessageToWorker( | 207 void OnCrossOriginMessageToWorker( |
206 const NavigatorConnectClient& client, | 208 const NavigatorConnectClient& client, |
207 const base::string16& message, | 209 const base::string16& message, |
208 const std::vector<TransferredMessagePort>& sent_message_ports, | 210 const std::vector<TransferredMessagePort>& sent_message_ports, |
209 const std::vector<int>& new_routing_ids); | 211 const std::vector<int>& new_routing_ids); |
| 212 void OnDidGetClient(int request_id, const ServiceWorkerClientInfo& client); |
210 void OnDidGetClients( | 213 void OnDidGetClients( |
211 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); | 214 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); |
212 void OnOpenWindowResponse(int request_id, | 215 void OnOpenWindowResponse(int request_id, |
213 const ServiceWorkerClientInfo& client); | 216 const ServiceWorkerClientInfo& client); |
214 void OnOpenWindowError(int request_id, const std::string& message); | 217 void OnOpenWindowError(int request_id, const std::string& message); |
215 void OnFocusClientResponse(int request_id, | 218 void OnFocusClientResponse(int request_id, |
216 const ServiceWorkerClientInfo& client); | 219 const ServiceWorkerClientInfo& client); |
217 void OnNavigateClientResponse(int request_id, | 220 void OnNavigateClientResponse(int request_id, |
218 const ServiceWorkerClientInfo& client); | 221 const ServiceWorkerClientInfo& client); |
219 void OnNavigateClientError(int request_id, const GURL& url); | 222 void OnNavigateClientError(int request_id, const GURL& url); |
(...skipping 23 matching lines...) Expand all Loading... |
243 // Initialized on the worker thread in workerContextStarted and | 246 // Initialized on the worker thread in workerContextStarted and |
244 // destructed on the worker thread in willDestroyWorkerContext. | 247 // destructed on the worker thread in willDestroyWorkerContext. |
245 scoped_ptr<WorkerContextData> context_; | 248 scoped_ptr<WorkerContextData> context_; |
246 | 249 |
247 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 250 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
248 }; | 251 }; |
249 | 252 |
250 } // namespace content | 253 } // namespace content |
251 | 254 |
252 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 255 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |