| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 const std::string& tab_json, | 127 const std::string& tab_json, |
| 128 const MessagePort& receiver, int receiver_port_id, | 128 const MessagePort& receiver, int receiver_port_id, |
| 129 const std::string& source_extension_id, | 129 const std::string& source_extension_id, |
| 130 const std::string& target_extension_id, | 130 const std::string& target_extension_id, |
| 131 const std::string& channel_name); | 131 const std::string& channel_name); |
| 132 | 132 |
| 133 void CloseChannelImpl(MessageChannelMap::iterator channel_iter, int port_id, | 133 void CloseChannelImpl(MessageChannelMap::iterator channel_iter, int port_id, |
| 134 bool notify_other_port); | 134 bool notify_other_port); |
| 135 | 135 |
| 136 // NotificationObserver interface. | 136 // NotificationObserver interface. |
| 137 virtual void Observe(NotificationType type, | 137 virtual void Observe(int type, |
| 138 const NotificationSource& source, | 138 const NotificationSource& source, |
| 139 const NotificationDetails& details); | 139 const NotificationDetails& details); |
| 140 | 140 |
| 141 // An IPC sender that might be in our list of channels has closed. | 141 // An IPC sender that might be in our list of channels has closed. |
| 142 void OnSenderClosed(IPC::Message::Sender* sender); | 142 void OnSenderClosed(IPC::Message::Sender* sender); |
| 143 | 143 |
| 144 Profile* profile_; | 144 Profile* profile_; |
| 145 | 145 |
| 146 NotificationRegistrar registrar_; | 146 NotificationRegistrar registrar_; |
| 147 | 147 |
| 148 MessageChannelMap channels_; | 148 MessageChannelMap channels_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); | 150 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ | 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ |
| OLD | NEW |