| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 int receiver_port_id, | 154 int receiver_port_id, |
| 155 int tab_id, | 155 int tab_id, |
| 156 int frame_id, | 156 int frame_id, |
| 157 const std::string& extension_id, | 157 const std::string& extension_id, |
| 158 const std::string& channel_name); | 158 const std::string& channel_name); |
| 159 | 159 |
| 160 void OpenChannelToNativeApp( | 160 void OpenChannelToNativeApp( |
| 161 int source_process_id, | 161 int source_process_id, |
| 162 int source_routing_id, | 162 int source_routing_id, |
| 163 int receiver_port_id, | 163 int receiver_port_id, |
| 164 const std::string& source_extension_id, | |
| 165 const std::string& native_app_name); | 164 const std::string& native_app_name); |
| 166 | 165 |
| 167 // Mark the given port as opened by the frame identified by | 166 // Mark the given port as opened by the frame identified by |
| 168 // (process_id, routing_id). | 167 // (process_id, routing_id). |
| 169 void OpenPort(int port_id, int process_id, int routing_id); | 168 void OpenPort(int port_id, int process_id, int routing_id); |
| 170 | 169 |
| 171 // Closes the given port in the given frame. If this was the last frame or if | 170 // Closes the given port in the given frame. If this was the last frame or if |
| 172 // |force_close| is true, then the other side is closed as well. | 171 // |force_close| is true, then the other side is closed as well. |
| 173 void ClosePort(int port_id, int process_id, int routing_id, bool force_close); | 172 void ClosePort(int port_id, int process_id, int routing_id, bool force_close); |
| 174 | 173 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 LazyBackgroundTaskQueue* lazy_background_task_queue_; | 315 LazyBackgroundTaskQueue* lazy_background_task_queue_; |
| 317 | 316 |
| 318 base::WeakPtrFactory<MessageService> weak_factory_; | 317 base::WeakPtrFactory<MessageService> weak_factory_; |
| 319 | 318 |
| 320 DISALLOW_COPY_AND_ASSIGN(MessageService); | 319 DISALLOW_COPY_AND_ASSIGN(MessageService); |
| 321 }; | 320 }; |
| 322 | 321 |
| 323 } // namespace extensions | 322 } // namespace extensions |
| 324 | 323 |
| 325 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ | 324 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ |
| OLD | NEW |