| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ~ServiceWorkerContextClient() override; | 80 ~ServiceWorkerContextClient() override; |
| 81 | 81 |
| 82 void OnMessageReceived(int thread_id, | 82 void OnMessageReceived(int thread_id, |
| 83 int embedded_worker_id, | 83 int embedded_worker_id, |
| 84 const IPC::Message& message); | 84 const IPC::Message& message); |
| 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::InterfaceProvider> services, | 90 mojo::shell::mojom::InterfaceProviderRequest services, |
| 91 mojo::InterfaceProviderPtr exposed_services); | 91 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
| 92 | 92 |
| 93 // WebServiceWorkerContextClient overrides. | 93 // WebServiceWorkerContextClient overrides. |
| 94 blink::WebURL scope() const override; | 94 blink::WebURL scope() const override; |
| 95 void getClients(const blink::WebServiceWorkerClientQueryOptions&, | 95 void getClients(const blink::WebServiceWorkerClientQueryOptions&, |
| 96 blink::WebServiceWorkerClientsCallbacks*) override; | 96 blink::WebServiceWorkerClientsCallbacks*) override; |
| 97 void openWindow(const blink::WebURL&, | 97 void openWindow(const blink::WebURL&, |
| 98 blink::WebServiceWorkerClientCallbacks*) override; | 98 blink::WebServiceWorkerClientCallbacks*) override; |
| 99 void setCachedMetadata(const blink::WebURL&, | 99 void setCachedMetadata(const blink::WebURL&, |
| 100 const char* data, | 100 const char* data, |
| 101 size_t size) override; | 101 size_t size) override; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Initialized on the worker thread in workerContextStarted and | 262 // Initialized on the worker thread in workerContextStarted and |
| 263 // destructed on the worker thread in willDestroyWorkerContext. | 263 // destructed on the worker thread in willDestroyWorkerContext. |
| 264 scoped_ptr<WorkerContextData> context_; | 264 scoped_ptr<WorkerContextData> context_; |
| 265 | 265 |
| 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace content | 269 } // namespace content |
| 270 | 270 |
| 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |