Chromium Code Reviews| 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 #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 Loading... | |
| 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_ |
| OLD | NEW |