| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const GURL& pattern, | 83 const GURL& pattern, |
| 84 const GURL& script_url); | 84 const GURL& script_url); |
| 85 void OnUnregisterServiceWorker(int thread_id, | 85 void OnUnregisterServiceWorker(int thread_id, |
| 86 int request_id, | 86 int request_id, |
| 87 int provider_id, | 87 int provider_id, |
| 88 const GURL& pattern); | 88 const GURL& pattern); |
| 89 void OnGetRegistration(int thread_id, | 89 void OnGetRegistration(int thread_id, |
| 90 int request_id, | 90 int request_id, |
| 91 int provider_id, | 91 int provider_id, |
| 92 const GURL& document_url); | 92 const GURL& document_url); |
| 93 void OnGetReadyRegistration(int thread_id, |
| 94 int request_id, |
| 95 int provider_id); |
| 93 void OnProviderCreated(int provider_id, int render_frame_id); | 96 void OnProviderCreated(int provider_id, int render_frame_id); |
| 94 void OnProviderDestroyed(int provider_id); | 97 void OnProviderDestroyed(int provider_id); |
| 95 void OnSetHostedVersionId(int provider_id, int64 version_id); | 98 void OnSetHostedVersionId(int provider_id, int64 version_id); |
| 96 void OnWorkerReadyForInspection(int embedded_worker_id); | 99 void OnWorkerReadyForInspection(int embedded_worker_id); |
| 97 void OnWorkerScriptLoaded(int embedded_worker_id, | 100 void OnWorkerScriptLoaded(int embedded_worker_id, |
| 98 int thread_id, | 101 int thread_id, |
| 99 int provider_id); | 102 int provider_id); |
| 100 void OnWorkerScriptLoadFailed(int embedded_worker_id); | 103 void OnWorkerScriptLoadFailed(int embedded_worker_id); |
| 101 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); | 104 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); |
| 102 void OnWorkerStarted(int embedded_worker_id); | 105 void OnWorkerStarted(int embedded_worker_id); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 int request_id, | 148 int request_id, |
| 146 ServiceWorkerStatusCode status); | 149 ServiceWorkerStatusCode status); |
| 147 | 150 |
| 148 void GetRegistrationComplete( | 151 void GetRegistrationComplete( |
| 149 int thread_id, | 152 int thread_id, |
| 150 int provider_id, | 153 int provider_id, |
| 151 int request_id, | 154 int request_id, |
| 152 ServiceWorkerStatusCode status, | 155 ServiceWorkerStatusCode status, |
| 153 const scoped_refptr<ServiceWorkerRegistration>& registration); | 156 const scoped_refptr<ServiceWorkerRegistration>& registration); |
| 154 | 157 |
| 158 void GetReadyRegistrationComplete( |
| 159 int thread_id, |
| 160 int request_id, |
| 161 base::WeakPtr<ServiceWorkerProviderHost> provider_host, |
| 162 ServiceWorkerRegistration* registration); |
| 163 |
| 155 void SendRegistrationError(int thread_id, | 164 void SendRegistrationError(int thread_id, |
| 156 int request_id, | 165 int request_id, |
| 157 ServiceWorkerStatusCode status, | 166 ServiceWorkerStatusCode status, |
| 158 const std::string& status_message); | 167 const std::string& status_message); |
| 159 | 168 |
| 160 void SendUnregistrationError(int thread_id, | 169 void SendUnregistrationError(int thread_id, |
| 161 int request_id, | 170 int request_id, |
| 162 ServiceWorkerStatusCode status); | 171 ServiceWorkerStatusCode status); |
| 163 | 172 |
| 164 void SendGetRegistrationError(int thread_id, | 173 void SendGetRegistrationError(int thread_id, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 177 | 186 |
| 178 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 187 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 179 ScopedVector<IPC::Message> pending_messages_; | 188 ScopedVector<IPC::Message> pending_messages_; |
| 180 | 189 |
| 181 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 190 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 182 }; | 191 }; |
| 183 | 192 |
| 184 } // namespace content | 193 } // namespace content |
| 185 | 194 |
| 186 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 195 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |