| 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 "base/strings/string16.h" |
| 9 #include "content/browser/service_worker/service_worker_registration_status.h" | 10 #include "content/browser/service_worker/service_worker_registration_status.h" |
| 10 #include "content/public/browser/browser_message_filter.h" | 11 #include "content/public/browser/browser_message_filter.h" |
| 11 | 12 |
| 12 class GURL; | 13 class GURL; |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 class MessagePortMessageFilter; | 17 class MessagePortMessageFilter; |
| 17 class ServiceWorkerContextCore; | 18 class ServiceWorkerContextCore; |
| 18 class ServiceWorkerContextWrapper; | 19 class ServiceWorkerContextWrapper; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void OnProviderCreated(int provider_id); | 52 void OnProviderCreated(int provider_id); |
| 52 void OnProviderDestroyed(int provider_id); | 53 void OnProviderDestroyed(int provider_id); |
| 53 void OnAddScriptClient(int thread_id, int provider_id); | 54 void OnAddScriptClient(int thread_id, int provider_id); |
| 54 void OnRemoveScriptClient(int thread_id, int provider_id); | 55 void OnRemoveScriptClient(int thread_id, int provider_id); |
| 55 void OnWorkerStarted(int thread_id, | 56 void OnWorkerStarted(int thread_id, |
| 56 int embedded_worker_id); | 57 int embedded_worker_id); |
| 57 void OnWorkerStopped(int embedded_worker_id); | 58 void OnWorkerStopped(int embedded_worker_id); |
| 58 void OnSendMessageToBrowser(int embedded_worker_id, | 59 void OnSendMessageToBrowser(int embedded_worker_id, |
| 59 int request_id, | 60 int request_id, |
| 60 const IPC::Message& message); | 61 const IPC::Message& message); |
| 62 void OnReportException(int embedded_worker_id, |
| 63 const base::string16& error_message, |
| 64 int line_number, |
| 65 int column_number, |
| 66 const base::string16& source_url); |
| 61 void OnPostMessage(int64 registration_id, | 67 void OnPostMessage(int64 registration_id, |
| 62 const base::string16& message, | 68 const base::string16& message, |
| 63 const std::vector<int>& sent_message_port_ids); | 69 const std::vector<int>& sent_message_port_ids); |
| 64 | 70 |
| 65 static void PostMessageFoundRegistration( | 71 static void PostMessageFoundRegistration( |
| 66 const base::string16& message, | 72 const base::string16& message, |
| 67 const std::vector<int>& sent_message_port_ids, | 73 const std::vector<int>& sent_message_port_ids, |
| 68 const std::vector<int>& new_routing_ids, | 74 const std::vector<int>& new_routing_ids, |
| 69 ServiceWorkerStatusCode status, | 75 ServiceWorkerStatusCode status, |
| 70 const scoped_refptr<ServiceWorkerRegistration>& result); | 76 const scoped_refptr<ServiceWorkerRegistration>& result); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 85 | 91 |
| 86 int render_process_id_; | 92 int render_process_id_; |
| 87 MessagePortMessageFilter* const message_port_message_filter_; | 93 MessagePortMessageFilter* const message_port_message_filter_; |
| 88 | 94 |
| 89 base::WeakPtr<ServiceWorkerContextCore> context_; | 95 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 90 }; | 96 }; |
| 91 | 97 |
| 92 } // namespace content | 98 } // namespace content |
| 93 | 99 |
| 94 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 100 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |