Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: content/browser/message_port_provider.cc

Issue 995663002: Implement receiving transferred ports from JS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flaky-test
Patch Set: address nit from nasko Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « android_webview/native/aw_message_port_service_impl.cc ('k') | content/public/browser/message_port_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698