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

Side by Side Diff: content/browser/service_worker/embedded_worker_registry.h

Issue 2787883003: [ServiceWorker] Add EmbeddedWorkerInstanceHost Interface. (Closed)
Patch Set: Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Called from EmbeddedWorkerInstance, relayed to the child process. 56 // Called from EmbeddedWorkerInstance, relayed to the child process.
57 ServiceWorkerStatusCode StopWorker(int process_id, 57 ServiceWorkerStatusCode StopWorker(int process_id,
58 int embedded_worker_id); 58 int embedded_worker_id);
59 59
60 // Stop all active workers, even if they're handling events. 60 // Stop all active workers, even if they're handling events.
61 void Shutdown(); 61 void Shutdown();
62 62
63 // Called back from EmbeddedWorker in the child process, relayed via 63 // Called back from EmbeddedWorker in the child process, relayed via
64 // ServiceWorkerDispatcherHost. 64 // ServiceWorkerDispatcherHost.
65 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id);
66 void OnWorkerScriptLoaded(int process_id, int embedded_worker_id); 65 void OnWorkerScriptLoaded(int process_id, int embedded_worker_id);
67 void OnWorkerThreadStarted(int process_id, 66 void OnWorkerThreadStarted(int process_id,
68 int thread_id, 67 int thread_id,
69 int embedded_worker_id); 68 int embedded_worker_id);
70 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); 69 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id);
71 void OnWorkerScriptEvaluated(int process_id, 70 void OnWorkerScriptEvaluated(int process_id,
72 int embedded_worker_id, 71 int embedded_worker_id,
73 bool success); 72 bool success);
74 void OnWorkerStarted(int process_id, int embedded_worker_id); 73 void OnWorkerStarted(int process_id, int embedded_worker_id);
75 void OnWorkerStopped(int process_id, int embedded_worker_id); 74 void OnWorkerStopped(int process_id, int embedded_worker_id);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 int next_embedded_worker_id_; 146 int next_embedded_worker_id_;
148 const int initial_embedded_worker_id_; 147 const int initial_embedded_worker_id_;
149 ServiceWorkerLifetimeTracker lifetime_tracker_; 148 ServiceWorkerLifetimeTracker lifetime_tracker_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); 150 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry);
152 }; 151 };
153 152
154 } // namespace content 153 } // namespace content
155 154
156 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 155 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698