Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: content/renderer/service_worker/embedded_worker_instance_client_impl.h

Issue 2496073002: ServiceWorker: Initialize EmbeddedWorkerInstanceClientImpl::wrapper_ (Closed)
Patch Set: update comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/service_worker/embedded_worker_instance_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
67 // Owned by EmbeddedWorkerDispatcher. This can be nullptr while a worker is
68 // not running.
67 EmbeddedWorkerDispatcher::WorkerWrapper* wrapper_; 69 EmbeddedWorkerDispatcher::WorkerWrapper* wrapper_;
68 70
69 StopWorkerCallback stop_callback_; 71 StopWorkerCallback stop_callback_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceClientImpl); 73 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceClientImpl);
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_ H_ 78 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_ H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/service_worker/embedded_worker_instance_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698