OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
6 #define CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 6 #define CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 std::vector<mojo::ScopedMessagePipeHandle> handles); | 35 std::vector<mojo::ScopedMessagePipeHandle> handles); |
36 | 36 |
37 MessagePort ReleaseMessagePort(); | 37 MessagePort ReleaseMessagePort(); |
38 | 38 |
39 private: | 39 private: |
40 explicit WebMessagePortChannelImpl(mojo::ScopedMessagePipeHandle handle); | 40 explicit WebMessagePortChannelImpl(mojo::ScopedMessagePipeHandle handle); |
41 | 41 |
42 // WebMessagePortChannel implementation. | 42 // WebMessagePortChannel implementation. |
43 void setClient(blink::WebMessagePortChannelClient* client) override; | 43 void setClient(blink::WebMessagePortChannelClient* client) override; |
44 void postMessage(const blink::WebString& encoded_message, | 44 void postMessage(const blink::WebString& encoded_message, |
45 blink::WebMessagePortChannelArray channels) override; | 45 blink::WebMessagePortChannelArray channels, |
| 46 blink::WebVector<mojo::ScopedHandle> handles) override; |
46 bool tryGetMessage(blink::WebString* encoded_message, | 47 bool tryGetMessage(blink::WebString* encoded_message, |
47 blink::WebMessagePortChannelArray& channels) override; | 48 blink::WebMessagePortChannelArray& channels, |
| 49 blink::WebVector<mojo::ScopedHandle>& handles) override; |
48 | 50 |
49 MessagePort port_; | 51 MessagePort port_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); | 53 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace content | 56 } // namespace content |
55 | 57 |
56 #endif // CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ | 58 #endif // CONTENT_CHILD_WEBMESSAGEPORTCHANNEL_IMPL_H_ |
OLD | NEW |