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