OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/message_port/web_message_port_channel_impl.h" | 5 #include "components/message_port/web_message_port_channel_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/logging.h" | 11 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
10 #include "mojo/public/cpp/system/message_pipe.h" | 13 #include "mojo/public/cpp/system/message_pipe.h" |
11 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h" | 14 #include "third_party/WebKit/public/platform/WebMessagePortChannelClient.h" |
12 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
13 | 16 |
14 using blink::WebMessagePortChannel; | 17 using blink::WebMessagePortChannel; |
15 using blink::WebMessagePortChannelArray; | 18 using blink::WebMessagePortChannelArray; |
16 using blink::WebMessagePortChannelClient; | 19 using blink::WebMessagePortChannelClient; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 return; | 134 return; |
132 | 135 |
133 DCHECK_EQ(MOJO_RESULT_OK, result); | 136 DCHECK_EQ(MOJO_RESULT_OK, result); |
134 if (!client_) | 137 if (!client_) |
135 return; | 138 return; |
136 client_->messageAvailable(); | 139 client_->messageAvailable(); |
137 WaitForNextMessage(); | 140 WaitForNextMessage(); |
138 } | 141 } |
139 | 142 |
140 } // namespace message_port | 143 } // namespace message_port |
OLD | NEW |