| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "base/optional.h" | 9 #include "base/optional.h" |
| 10 #include "content/child/child_thread_impl.h" | 10 #include "content/child/child_thread_impl.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // This is valid before StartWorker is called. After that, this object | 57 // This is valid before StartWorker is called. After that, this object |
| 58 // will be passed to ServiceWorkerContextClient. | 58 // will be passed to ServiceWorkerContextClient. |
| 59 std::unique_ptr<EmbeddedWorkerInstanceClientImpl> temporal_self_; | 59 std::unique_ptr<EmbeddedWorkerInstanceClientImpl> temporal_self_; |
| 60 | 60 |
| 61 // This is drained by ServiceWorkerContextClient after the worker thread is | 61 // This is drained by ServiceWorkerContextClient after the worker thread is |
| 62 // launched. | 62 // launched. |
| 63 service_manager::mojom::InterfaceProviderRequest renderer_request_; | 63 service_manager::mojom::InterfaceProviderRequest renderer_request_; |
| 64 | 64 |
| 65 base::Optional<int> embedded_worker_id_; | 65 base::Optional<int> embedded_worker_id_; |
| 66 // Owned by EmbeddedWorkerDispatcher |
| 66 EmbeddedWorkerDispatcher::WorkerWrapper* wrapper_; | 67 EmbeddedWorkerDispatcher::WorkerWrapper* wrapper_; |
| 67 | 68 |
| 68 StopWorkerCallback stop_callback_; | 69 StopWorkerCallback stop_callback_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceClientImpl); | 71 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceClientImpl); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace content | 74 } // namespace content |
| 74 | 75 |
| 75 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_
H_ | 76 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_
H_ |
| OLD | NEW |