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" | |
8 #include "content/browser/browser_thread_impl.h" | 7 #include "content/browser/browser_thread_impl.h" |
9 #include "content/browser/message_port_message_filter.h" | 8 #include "content/browser/message_port_message_filter.h" |
10 #include "content/browser/message_port_service.h" | 9 #include "content/browser/message_port_service.h" |
11 #include "content/browser/renderer_host/render_process_host_impl.h" | 10 #include "content/browser/renderer_host/render_process_host_impl.h" |
12 #include "content/browser/renderer_host/render_view_host_impl.h" | 11 #include "content/browser/renderer_host/render_view_host_impl.h" |
13 #include "content/browser/web_contents/web_contents_impl.h" | 12 #include "content/browser/web_contents/web_contents_impl.h" |
14 #include "content/common/frame_messages.h" | 13 #include "content/common/frame_messages.h" |
15 #include "content/public/browser/message_port_delegate.h" | 14 #include "content/public/browser/message_port_delegate.h" |
16 | 15 |
17 namespace content { | 16 namespace content { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // static | 99 // static |
101 void MessagePortProvider::UpdateMessagePort(int message_port_id, | 100 void MessagePortProvider::UpdateMessagePort(int message_port_id, |
102 MessagePortDelegate* delegate) { | 101 MessagePortDelegate* delegate) { |
103 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 102 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
104 MessagePortService::GetInstance()->UpdateMessagePort(message_port_id, | 103 MessagePortService::GetInstance()->UpdateMessagePort(message_port_id, |
105 delegate, | 104 delegate, |
106 message_port_id); | 105 message_port_id); |
107 } | 106 } |
108 | 107 |
109 } // namespace content | 108 } // namespace content |
OLD | NEW |