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

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

Issue 1342733002: ServiceWorker: log when the script's loaded separately from thread start (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 3 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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int process_id); 63 int process_id);
64 ServiceWorkerStatusCode StopWorker(int process_id, 64 ServiceWorkerStatusCode StopWorker(int process_id,
65 int embedded_worker_id); 65 int embedded_worker_id);
66 66
67 // Stop all active workers, even if they're handling events. 67 // Stop all active workers, even if they're handling events.
68 void Shutdown(); 68 void Shutdown();
69 69
70 // Called back from EmbeddedWorker in the child process, relayed via 70 // Called back from EmbeddedWorker in the child process, relayed via
71 // ServiceWorkerDispatcherHost. 71 // ServiceWorkerDispatcherHost.
72 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id); 72 void OnWorkerReadyForInspection(int process_id, int embedded_worker_id);
73 void OnWorkerScriptLoaded(int process_id, 73 void OnWorkerScriptLoaded(int process_id, int embedded_worker_id);
74 int thread_id, 74 void OnWorkerThreadStarted(int process_id,
75 int embedded_worker_id); 75 int thread_id,
76 int embedded_worker_id);
76 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id); 77 void OnWorkerScriptLoadFailed(int process_id, int embedded_worker_id);
77 void OnWorkerScriptEvaluated(int process_id, 78 void OnWorkerScriptEvaluated(int process_id,
78 int embedded_worker_id, 79 int embedded_worker_id,
79 bool success); 80 bool success);
80 void OnWorkerStarted(int process_id, int embedded_worker_id); 81 void OnWorkerStarted(int process_id, int embedded_worker_id);
81 void OnWorkerStopped(int process_id, int embedded_worker_id); 82 void OnWorkerStopped(int process_id, int embedded_worker_id);
82 void OnReportException(int embedded_worker_id, 83 void OnReportException(int embedded_worker_id,
83 const base::string16& error_message, 84 const base::string16& error_message,
84 int line_number, 85 int line_number,
85 int column_number, 86 int column_number,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 int next_embedded_worker_id_; 143 int next_embedded_worker_id_;
143 const int initial_embedded_worker_id_; 144 const int initial_embedded_worker_id_;
144 145
145 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); 146 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry);
146 }; 147 };
147 148
148 } // namespace content 149 } // namespace content
149 150
150 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 151 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_instance.cc ('k') | content/browser/service_worker/embedded_worker_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698