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

Side by Side Diff: content/public/browser/message_port_provider.h

Issue 995663002: Implement receiving transferred ports from JS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flaky-test
Patch Set: rebase again 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
« no previous file with comments | « content/browser/message_port_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_
6 #define CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_ 6 #define CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // is called. Should be called on IO thread. 58 // is called. Should be called on IO thread.
59 static void HoldMessages(int message_port_id); 59 static void HoldMessages(int message_port_id);
60 60
61 // Release any queued messages as a result of HoldMessages. Should be 61 // Release any queued messages as a result of HoldMessages. Should be
62 // called on IO thread. 62 // called on IO thread.
63 static void ReleaseMessages(int message_port_id); 63 static void ReleaseMessages(int message_port_id);
64 64
65 // Cleanup the message ports that belong to the closing delegate. 65 // Cleanup the message ports that belong to the closing delegate.
66 static void OnMessagePortDelegateClosing(MessagePortDelegate * delegate); 66 static void OnMessagePortDelegateClosing(MessagePortDelegate * delegate);
67 67
68 // Update message port information when the message port is transferred
69 // from a different process. The updated message ports will have their
70 // routing numbers equal to the message port numbers.
nasko 2015/03/11 23:08:42 nit: Let's be consistent and put the requirement o
sgurun-gerrit only 2015/03/11 23:28:59 Done.
71 static void UpdateMessagePort(int message_port_id,
72 MessagePortDelegate* delegate);
73
68 private: 74 private:
69 DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePortProvider); 75 DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePortProvider);
70 }; 76 };
71 77
72 } // namespace content 78 } // namespace content
73 79
74 #endif // CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_ 80 #endif // CONTENT_PUBLIC_BROWSER_MESSAGE_PORT_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/message_port_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698