OLD | NEW |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const GURL& pattern, | 70 const GURL& pattern, |
71 const GURL& script_url); | 71 const GURL& script_url); |
72 void OnUnregisterServiceWorker(int thread_id, | 72 void OnUnregisterServiceWorker(int thread_id, |
73 int request_id, | 73 int request_id, |
74 int provider_id, | 74 int provider_id, |
75 const GURL& pattern); | 75 const GURL& pattern); |
76 void OnProviderCreated(int provider_id); | 76 void OnProviderCreated(int provider_id); |
77 void OnProviderDestroyed(int provider_id); | 77 void OnProviderDestroyed(int provider_id); |
78 void OnSetHostedVersionId(int provider_id, int64 version_id); | 78 void OnSetHostedVersionId(int provider_id, int64 version_id); |
79 void OnWorkerReadyForInspection(int embedded_worker_id); | 79 void OnWorkerReadyForInspection(int embedded_worker_id); |
80 void OnWorkerScriptLoaded(int embedded_worker_id); | 80 void OnWorkerScriptLoaded(int embedded_worker_id, int thread_id); |
81 void OnWorkerScriptLoadFailed(int embedded_worker_id); | 81 void OnWorkerScriptLoadFailed(int embedded_worker_id); |
82 void OnWorkerStarted(int thread_id, | 82 void OnWorkerStarted(int embedded_worker_id); |
83 int embedded_worker_id); | |
84 void OnWorkerStopped(int embedded_worker_id); | 83 void OnWorkerStopped(int embedded_worker_id); |
85 void OnPausedAfterDownload(int embedded_worker_id); | 84 void OnPausedAfterDownload(int embedded_worker_id); |
86 void OnReportException(int embedded_worker_id, | 85 void OnReportException(int embedded_worker_id, |
87 const base::string16& error_message, | 86 const base::string16& error_message, |
88 int line_number, | 87 int line_number, |
89 int column_number, | 88 int column_number, |
90 const GURL& source_url); | 89 const GURL& source_url); |
91 void OnReportConsoleMessage( | 90 void OnReportConsoleMessage( |
92 int embedded_worker_id, | 91 int embedded_worker_id, |
93 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); | 92 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 133 |
135 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 134 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
136 ScopedVector<IPC::Message> pending_messages_; | 135 ScopedVector<IPC::Message> pending_messages_; |
137 | 136 |
138 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 137 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
139 }; | 138 }; |
140 | 139 |
141 } // namespace content | 140 } // namespace content |
142 | 141 |
143 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 142 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |