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

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

Issue 2106693002: Convert EmbeddedWorker to InterfaceRegistry/Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 int64_t service_worker_version_id, 76 int64_t service_worker_version_id,
77 const GURL& service_worker_scope, 77 const GURL& service_worker_scope,
78 const GURL& script_url, 78 const GURL& script_url,
79 int worker_devtools_agent_route_id); 79 int worker_devtools_agent_route_id);
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.
87 // ServiceRegistry to connect to services before this method is called are 87 void BindInterfaceProviders(
88 // queued up and will resolve after this method is called. 88 shell::mojom::InterfaceProviderRequest request,
89 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, 89 shell::mojom::InterfaceProviderPtr remote_interfaces);
90 shell::mojom::InterfaceProviderPtr exposed_services);
91 90
92 // WebServiceWorkerContextClient overrides. 91 // WebServiceWorkerContextClient overrides.
93 blink::WebURL scope() const override; 92 blink::WebURL scope() const override;
94 void getClient(const blink::WebString&, 93 void getClient(const blink::WebString&,
95 blink::WebServiceWorkerClientCallbacks*) override; 94 blink::WebServiceWorkerClientCallbacks*) override;
96 void getClients(const blink::WebServiceWorkerClientQueryOptions&, 95 void getClients(const blink::WebServiceWorkerClientQueryOptions&,
97 blink::WebServiceWorkerClientsCallbacks*) override; 96 blink::WebServiceWorkerClientsCallbacks*) override;
98 void openWindow(const blink::WebURL&, 97 void openWindow(const blink::WebURL&,
99 blink::WebServiceWorkerClientCallbacks*) override; 98 blink::WebServiceWorkerClientCallbacks*) override;
100 void setCachedMetadata(const blink::WebURL&, 99 void setCachedMetadata(const blink::WebURL&,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Initialized on the worker thread in workerContextStarted and 248 // Initialized on the worker thread in workerContextStarted and
250 // destructed on the worker thread in willDestroyWorkerContext. 249 // destructed on the worker thread in willDestroyWorkerContext.
251 std::unique_ptr<WorkerContextData> context_; 250 std::unique_ptr<WorkerContextData> context_;
252 251
253 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 252 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
254 }; 253 };
255 254
256 } // namespace content 255 } // namespace content
257 256
258 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 257 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698