| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/linked_ptr.h" | 12 #include "base/linked_ptr.h" |
| 13 #include "base/lock.h" | 13 #include "base/lock.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "chrome/common/ipc_message.h" | |
| 16 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 16 #include "ipc/ipc_message.h" |
| 17 | 17 |
| 18 class MessageLoop; | 18 class MessageLoop; |
| 19 class Profile; | 19 class Profile; |
| 20 class RenderProcessHost; | 20 class RenderProcessHost; |
| 21 class ResourceMessageFilter; | 21 class ResourceMessageFilter; |
| 22 class URLRequestContext; | 22 class URLRequestContext; |
| 23 | 23 |
| 24 // This class manages message and event passing between renderer processes. | 24 // This class manages message and event passing between renderer processes. |
| 25 // It maintains a list of processes that are listening to events and a set of | 25 // It maintains a list of processes that are listening to events and a set of |
| 26 // open channels. | 26 // open channels. |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 int next_port_id_; | 166 int next_port_id_; |
| 167 | 167 |
| 168 // Protects the next_port_id_ variable, since it can be | 168 // Protects the next_port_id_ variable, since it can be |
| 169 // used on the IO thread or the UI thread. | 169 // used on the IO thread or the UI thread. |
| 170 Lock next_port_id_lock_; | 170 Lock next_port_id_lock_; |
| 171 | 171 |
| 172 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); | 172 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ | 175 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ |
| OLD | NEW |