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

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

Issue 2637743002: ServiceWorker: remove EmbeddedWorkerMsg_StartWorker (Closed)
Patch Set: rebase Created 3 years, 11 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static ServiceWorkerContextClient* ThreadSpecificInstance(); 82 static ServiceWorkerContextClient* ThreadSpecificInstance();
83 83
84 // Called on the main thread. 84 // Called on the main thread.
85 ServiceWorkerContextClient( 85 ServiceWorkerContextClient(
86 int embedded_worker_id, 86 int embedded_worker_id,
87 int64_t service_worker_version_id, 87 int64_t service_worker_version_id,
88 const GURL& service_worker_scope, 88 const GURL& service_worker_scope,
89 const GURL& script_url, 89 const GURL& script_url,
90 mojom::ServiceWorkerEventDispatcherRequest dispatcher_request, 90 mojom::ServiceWorkerEventDispatcherRequest dispatcher_request,
91 std::unique_ptr<EmbeddedWorkerInstanceClientImpl> embedded_worker_client); 91 std::unique_ptr<EmbeddedWorkerInstanceClientImpl> embedded_worker_client);
92 ServiceWorkerContextClient(int embedded_worker_id,
93 int64_t service_worker_version_id,
94 const GURL& service_worker_scope,
95 const GURL& script_url);
96 ~ServiceWorkerContextClient() override; 92 ~ServiceWorkerContextClient() override;
97 93
98 void OnMessageReceived(int thread_id, 94 void OnMessageReceived(int thread_id,
99 int embedded_worker_id, 95 int embedded_worker_id,
100 const IPC::Message& message); 96 const IPC::Message& message);
101 97
102 // Called after the worker has started.
103 void BindEventDispatcher(mojom::ServiceWorkerEventDispatcherRequest request);
104
105 // WebServiceWorkerContextClient overrides. 98 // WebServiceWorkerContextClient overrides.
106 blink::WebURL scope() const override; 99 blink::WebURL scope() const override;
107 void getClient( 100 void getClient(
108 const blink::WebString&, 101 const blink::WebString&,
109 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; 102 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override;
110 void getClients( 103 void getClients(
111 const blink::WebServiceWorkerClientQueryOptions&, 104 const blink::WebServiceWorkerClientQueryOptions&,
112 std::unique_ptr<blink::WebServiceWorkerClientsCallbacks>) override; 105 std::unique_ptr<blink::WebServiceWorkerClientsCallbacks>) override;
113 void openWindow( 106 void openWindow(
114 const blink::WebURL&, 107 const blink::WebURL&,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Initialized on the worker thread in workerContextStarted and 289 // Initialized on the worker thread in workerContextStarted and
297 // destructed on the worker thread in willDestroyWorkerContext. 290 // destructed on the worker thread in willDestroyWorkerContext.
298 std::unique_ptr<WorkerContextData> context_; 291 std::unique_ptr<WorkerContextData> context_;
299 292
300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 293 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
301 }; 294 };
302 295
303 } // namespace content 296 } // namespace content
304 297
305 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 298 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698