| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_MESSAGING_MESSAGE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 int source_process_id, int source_routing_id, int receiver_port_id, | 113 int source_process_id, int source_routing_id, int receiver_port_id, |
| 114 int tab_id, const std::string& extension_id, | 114 int tab_id, const std::string& extension_id, |
| 115 const std::string& channel_name); | 115 const std::string& channel_name); |
| 116 | 116 |
| 117 void OpenChannelToNativeApp( | 117 void OpenChannelToNativeApp( |
| 118 int source_process_id, | 118 int source_process_id, |
| 119 int source_routing_id, | 119 int source_routing_id, |
| 120 int receiver_port_id, | 120 int receiver_port_id, |
| 121 const std::string& source_extension_id, | 121 const std::string& source_extension_id, |
| 122 const std::string& native_app_name, | 122 const std::string& native_app_name, |
| 123 const std::string& channel_name, | 123 const std::string& channel_name); |
| 124 const std::string& connect_message); | |
| 125 | 124 |
| 126 // Should be called on the UI thread. | 125 // Should be called on the UI thread. |
| 127 void FinalizeOpenChannelToNativeApp( | 126 void FinalizeOpenChannelToNativeApp( |
| 128 int receiver_port_id, | 127 int receiver_port_id, |
| 129 const std::string& channel_name, | 128 const std::string& channel_name, |
| 130 scoped_ptr<MessageChannel> channel, | 129 scoped_ptr<MessageChannel> channel, |
| 131 const std::string& tab_json, | 130 const std::string& tab_json, |
| 132 NativeMessageProcessHost::ScopedHost native_process); | 131 NativeMessageProcessHost::ScopedHost native_process); |
| 133 | 132 |
| 134 // Closes the message channel associated with the given port, and notifies | 133 // Closes the message channel associated with the given port, and notifies |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 LazyBackgroundTaskQueue* lazy_background_task_queue_; | 206 LazyBackgroundTaskQueue* lazy_background_task_queue_; |
| 208 | 207 |
| 209 base::WeakPtrFactory<MessageService> weak_factory_; | 208 base::WeakPtrFactory<MessageService> weak_factory_; |
| 210 | 209 |
| 211 DISALLOW_COPY_AND_ASSIGN(MessageService); | 210 DISALLOW_COPY_AND_ASSIGN(MessageService); |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 } // namespace extensions | 213 } // namespace extensions |
| 215 | 214 |
| 216 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ | 215 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ |
| OLD | NEW |