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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/browser/service_worker/service_worker_registration_status.h" | 9 #include "content/browser/service_worker/service_worker_registration_status.h" |
10 #include "content/public/browser/browser_message_filter.h" | 10 #include "content/public/browser/browser_message_filter.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const GURL& pattern, | 42 const GURL& pattern, |
43 const GURL& script_url); | 43 const GURL& script_url); |
44 void OnUnregisterServiceWorker(int32 thread_id, | 44 void OnUnregisterServiceWorker(int32 thread_id, |
45 int32 request_id, | 45 int32 request_id, |
46 const GURL& pattern); | 46 const GURL& pattern); |
47 void OnProviderCreated(int provider_id); | 47 void OnProviderCreated(int provider_id); |
48 void OnProviderDestroyed(int provider_id); | 48 void OnProviderDestroyed(int provider_id); |
49 void OnWorkerStarted(int thread_id, | 49 void OnWorkerStarted(int thread_id, |
50 int embedded_worker_id); | 50 int embedded_worker_id); |
51 void OnWorkerStopped(int embedded_worker_id); | 51 void OnWorkerStopped(int embedded_worker_id); |
| 52 void OnSendMessageToBrowser(int embedded_worker_id, |
| 53 const IPC::Message& message); |
52 | 54 |
53 // Callbacks from ServiceWorkerContextCore | 55 // Callbacks from ServiceWorkerContextCore |
54 void RegistrationComplete(int32 thread_id, | 56 void RegistrationComplete(int32 thread_id, |
55 int32 request_id, | 57 int32 request_id, |
56 ServiceWorkerRegistrationStatus status, | 58 ServiceWorkerRegistrationStatus status, |
57 int64 registration_id); | 59 int64 registration_id); |
58 | 60 |
59 void UnregistrationComplete(int32 thread_id, | 61 void UnregistrationComplete(int32 thread_id, |
60 int32 request_id, | 62 int32 request_id, |
61 ServiceWorkerRegistrationStatus status); | 63 ServiceWorkerRegistrationStatus status); |
62 | 64 |
63 void SendRegistrationError(int32 thread_id, | 65 void SendRegistrationError(int32 thread_id, |
64 int32 request_id, | 66 int32 request_id, |
65 ServiceWorkerRegistrationStatus status); | 67 ServiceWorkerRegistrationStatus status); |
66 int render_process_id_; | 68 int render_process_id_; |
67 base::WeakPtr<ServiceWorkerContextCore> context_; | 69 base::WeakPtr<ServiceWorkerContextCore> context_; |
68 }; | 70 }; |
69 | 71 |
70 } // namespace content | 72 } // namespace content |
71 | 73 |
72 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 74 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |