| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/public/browser/message_port_provider.h" | 5 #include "content/public/browser/message_port_provider.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
| 9 #include "content/browser/message_port_message_filter.h" | 9 #include "content/browser/message_port_message_filter.h" |
| 10 #include "content/browser/message_port_service.h" | 10 #include "content/browser/message_port_service.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 MessagePortService* msp = MessagePortService::GetInstance(); | 92 MessagePortService* msp = MessagePortService::GetInstance(); |
| 93 msp->ReleaseMessages(message_port_id); | 93 msp->ReleaseMessages(message_port_id); |
| 94 } | 94 } |
| 95 | 95 |
| 96 // static | 96 // static |
| 97 void MessagePortProvider::OnMessagePortDelegateClosing( | 97 void MessagePortProvider::OnMessagePortDelegateClosing( |
| 98 MessagePortDelegate* delegate) { | 98 MessagePortDelegate* delegate) { |
| 99 MessagePortService::GetInstance()->OnMessagePortDelegateClosing(delegate); | 99 MessagePortService::GetInstance()->OnMessagePortDelegateClosing(delegate); |
| 100 } | 100 } |
| 101 | 101 |
| 102 // static |
| 103 void MessagePortProvider::UpdateMessagePort(int message_port_id, |
| 104 MessagePortDelegate* delegate) { |
| 105 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 106 MessagePortService::GetInstance()->UpdateMessagePort(message_port_id, |
| 107 delegate, |
| 108 message_port_id); |
| 109 } |
| 110 |
| 102 } // namespace content | 111 } // namespace content |
| OLD | NEW |