OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "chrome/browser/extensions/extension_devtools_manager.h" |
| 15 #include "chrome/common/notification_observer.h" |
14 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
15 #include "chrome/browser/extensions/extension_devtools_manager.h" | |
16 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
17 | 18 |
18 class GURL; | 19 class GURL; |
19 class Profile; | 20 class Profile; |
20 class TabContents; | 21 class TabContents; |
21 | 22 |
22 // This class manages message and event passing between renderer processes. | 23 // This class manages message and event passing between renderer processes. |
23 // It maintains a list of processes that are listening to events and a set of | 24 // It maintains a list of processes that are listening to events and a set of |
24 // open channels. | 25 // open channels. |
25 // | 26 // |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 181 |
181 // A map between an event name and a set of process id's that are listening | 182 // A map between an event name and a set of process id's that are listening |
182 // to that event. | 183 // to that event. |
183 typedef std::map<std::string, std::set<int> > ListenerMap; | 184 typedef std::map<std::string, std::set<int> > ListenerMap; |
184 ListenerMap listeners_; | 185 ListenerMap listeners_; |
185 | 186 |
186 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); | 187 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); |
187 }; | 188 }; |
188 | 189 |
189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ | 190 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ |
OLD | NEW |