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

Side by Side Diff: content/browser/service_worker/service_worker_dispatcher_host.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_SERVICE_WORKER_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void OnGetRegistrations(int thread_id, int request_id, int provider_id); 103 void OnGetRegistrations(int thread_id, int request_id, int provider_id);
104 void OnGetRegistrationForReady(int thread_id, 104 void OnGetRegistrationForReady(int thread_id,
105 int request_id, 105 int request_id,
106 int provider_id); 106 int provider_id);
107 void OnProviderCreated(int provider_id, 107 void OnProviderCreated(int provider_id,
108 int route_id, 108 int route_id,
109 ServiceWorkerProviderType provider_type); 109 ServiceWorkerProviderType provider_type);
110 void OnProviderDestroyed(int provider_id); 110 void OnProviderDestroyed(int provider_id);
111 void OnSetHostedVersionId(int provider_id, int64 version_id); 111 void OnSetHostedVersionId(int provider_id, int64 version_id);
112 void OnWorkerReadyForInspection(int embedded_worker_id); 112 void OnWorkerReadyForInspection(int embedded_worker_id);
113 void OnWorkerScriptLoaded(int embedded_worker_id, 113 void OnWorkerScriptLoaded(int embedded_worker_id);
114 int thread_id, 114 void OnWorkerThreadStarted(int embedded_worker_id,
115 int provider_id); 115 int thread_id,
116 int provider_id);
116 void OnWorkerScriptLoadFailed(int embedded_worker_id); 117 void OnWorkerScriptLoadFailed(int embedded_worker_id);
117 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); 118 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success);
118 void OnWorkerStarted(int embedded_worker_id); 119 void OnWorkerStarted(int embedded_worker_id);
119 void OnWorkerStopped(int embedded_worker_id); 120 void OnWorkerStopped(int embedded_worker_id);
120 void OnReportException(int embedded_worker_id, 121 void OnReportException(int embedded_worker_id,
121 const base::string16& error_message, 122 const base::string16& error_message,
122 int line_number, 123 int line_number,
123 int column_number, 124 int column_number,
124 const GURL& source_url); 125 const GURL& source_url);
125 void OnReportConsoleMessage( 126 void OnReportConsoleMessage(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 217 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
217 ScopedVector<IPC::Message> pending_messages_; 218 ScopedVector<IPC::Message> pending_messages_;
218 219
219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 220 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
220 }; 221 };
221 222
222 } // namespace content 223 } // namespace content
223 224
224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 225 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698