Chromium Code Reviews| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 void AddChannel(MessageChannel* channel, int receiver_port_id); | 193 void AddChannel(MessageChannel* channel, int receiver_port_id); |
| 194 | 194 |
| 195 // content::NotificationObserver interface. | 195 // content::NotificationObserver interface. |
| 196 virtual void Observe(int type, | 196 virtual void Observe(int type, |
| 197 const content::NotificationSource& source, | 197 const content::NotificationSource& source, |
| 198 const content::NotificationDetails& details) OVERRIDE; | 198 const content::NotificationDetails& details) OVERRIDE; |
| 199 | 199 |
| 200 // A process that might be in our list of channels has closed. | 200 // A process that might be in our list of channels has closed. |
| 201 void OnProcessClosed(content::RenderProcessHost* process); | 201 void OnProcessClosed(content::RenderProcessHost* process); |
| 202 | 202 |
| 203 void GotDomainBoundCert(scoped_ptr<OpenChannelParams> params, | 203 void GotChannelID(scoped_ptr<OpenChannelParams> params, |
| 204 const std::string& tls_channel_id); | 204 const std::string& tls_channel_id); |
|
wtc
2014/07/01 19:50:49
Fix the indentation.
Ryan Hamilton
2014/07/21 19:12:05
Done.
| |
| 205 | 205 |
| 206 // Enqueues a message on a pending channel. | 206 // Enqueues a message on a pending channel. |
| 207 void EnqueuePendingMessage(int port_id, int channel_id, | 207 void EnqueuePendingMessage(int port_id, int channel_id, |
| 208 const Message& message); | 208 const Message& message); |
| 209 | 209 |
| 210 // Enqueues a message on a channel pending on a lazy background page load. | 210 // Enqueues a message on a channel pending on a lazy background page load. |
| 211 void EnqueuePendingMessageForLazyBackgroundLoad(int port_id, | 211 void EnqueuePendingMessageForLazyBackgroundLoad(int port_id, |
| 212 int channel_id, | 212 int channel_id, |
| 213 const Message& message); | 213 const Message& message); |
| 214 | 214 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 LazyBackgroundTaskQueue* lazy_background_task_queue_; | 268 LazyBackgroundTaskQueue* lazy_background_task_queue_; |
| 269 | 269 |
| 270 base::WeakPtrFactory<MessageService> weak_factory_; | 270 base::WeakPtrFactory<MessageService> weak_factory_; |
| 271 | 271 |
| 272 DISALLOW_COPY_AND_ASSIGN(MessageService); | 272 DISALLOW_COPY_AND_ASSIGN(MessageService); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 } // namespace extensions | 275 } // namespace extensions |
| 276 | 276 |
| 277 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ | 277 #endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_SERVICE_H_ |
| OLD | NEW |