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

Side by Side Diff: content/child/webmessageportchannel_impl.h

Issue 2755223002: Enable Blink to pass extra Mojo handles across MessagePorts
Patch Set: Finish plumbing Created 3 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 (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
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_
OLDNEW
« no previous file with comments | « content/browser/android/app_web_message_port.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698