| 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_EMBEDDED_WORKER_REGISTRY_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 int line_number, | 85 int line_number, |
| 86 int column_number, | 86 int column_number, |
| 87 const GURL& source_url); | 87 const GURL& source_url); |
| 88 void OnReportConsoleMessage(int embedded_worker_id, | 88 void OnReportConsoleMessage(int embedded_worker_id, |
| 89 int source_identifier, | 89 int source_identifier, |
| 90 int message_level, | 90 int message_level, |
| 91 const base::string16& message, | 91 const base::string16& message, |
| 92 int line_number, | 92 int line_number, |
| 93 const GURL& source_url); | 93 const GURL& source_url); |
| 94 | 94 |
| 95 // Checks if service workers exist on the process. |
| 96 bool IsWorkerExists(int process_id); |
| 97 |
| 95 // Keeps a map from process_id to sender information. | 98 // Keeps a map from process_id to sender information. |
| 96 void AddChildProcessSender( | 99 void AddChildProcessSender( |
| 97 int process_id, | 100 int process_id, |
| 98 IPC::Sender* sender, | 101 IPC::Sender* sender, |
| 99 MessagePortMessageFilter* message_port_message_filter); | 102 MessagePortMessageFilter* message_port_message_filter); |
| 100 void RemoveChildProcessSender(int process_id); | 103 void RemoveChildProcessSender(int process_id); |
| 101 | 104 |
| 102 // Returns an embedded worker instance for given |embedded_worker_id|. | 105 // Returns an embedded worker instance for given |embedded_worker_id|. |
| 103 EmbeddedWorkerInstance* GetWorker(int embedded_worker_id); | 106 EmbeddedWorkerInstance* GetWorker(int embedded_worker_id); |
| 104 | 107 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 159 |
| 157 int next_embedded_worker_id_; | 160 int next_embedded_worker_id_; |
| 158 const int initial_embedded_worker_id_; | 161 const int initial_embedded_worker_id_; |
| 159 | 162 |
| 160 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); | 163 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } // namespace content | 166 } // namespace content |
| 164 | 167 |
| 165 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ | 168 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ |
| OLD | NEW |