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

Unified Diff: content/browser/service_worker/embedded_worker_instance.h

Issue 2106693002: Convert EmbeddedWorker to InterfaceRegistry/Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/embedded_worker_instance.h
diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
index 9ec684d538833c8050681a951c9673a0a8175d3f..b0b0da93138da1193815bbf7a95011b279b4c46f 100644
--- a/content/browser/service_worker/embedded_worker_instance.h
+++ b/content/browser/service_worker/embedded_worker_instance.h
@@ -38,12 +38,15 @@ namespace IPC {
class Message;
}
+namespace shell {
+class InterfaceProvider;
+class InterfaceRegistry;
+}
+
namespace content {
class EmbeddedWorkerRegistry;
class MessagePortMessageFilter;
-class ServiceRegistry;
-class ServiceRegistryImpl;
class ServiceWorkerContextCore;
// This gives an interface to control one EmbeddedWorker instance, which
@@ -130,9 +133,11 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
// Resumes the worker if it paused after download.
void ResumeAfterDownload();
- // Returns the ServiceRegistry for this worker. It is invalid to call this
- // when the worker is not in STARTING or RUNNING status.
- ServiceRegistry* GetServiceRegistry();
+ // Returns the shell::InterfaceRegistry and shell::InterfaceProvider for this
+ // worker. It is invalid to call this when the worker is not in STARTING or
+ // RUNNING status.
+ shell::InterfaceRegistry* GetInterfaceRegistry();
+ shell::InterfaceProvider* GetRemoteInterfaces();
int embedded_worker_id() const { return embedded_worker_id_; }
EmbeddedWorkerStatus status() const { return status_; }
@@ -297,7 +302,8 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
// Current running information.
std::unique_ptr<EmbeddedWorkerInstance::WorkerProcessHandle> process_handle_;
int thread_id_;
- std::unique_ptr<ServiceRegistryImpl> service_registry_;
+ std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
+ std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
// Whether devtools is attached or not.
bool devtools_attached_;
« no previous file with comments | « no previous file | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698