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 #ifndef COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ | 5 #ifndef COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ |
6 #define COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ | 6 #define COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "mojo/common/handle_watcher.h" | 9 #include "mojo/message_pump/handle_watcher.h" |
10 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" | 10 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" |
11 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | 11 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" |
12 | 12 |
13 namespace message_port { | 13 namespace message_port { |
14 | 14 |
15 class WebMessagePortChannelImpl : public blink::WebMessagePortChannel { | 15 class WebMessagePortChannelImpl : public blink::WebMessagePortChannel { |
16 public: | 16 public: |
17 static void CreatePair( | 17 static void CreatePair( |
18 blink::WebMessagePortChannel** channel1, | 18 blink::WebMessagePortChannel** channel1, |
19 blink::WebMessagePortChannel** channel2); | 19 blink::WebMessagePortChannel** channel2); |
(...skipping 16 matching lines...) Expand all Loading... |
36 blink::WebMessagePortChannelClient* client_; | 36 blink::WebMessagePortChannelClient* client_; |
37 mojo::ScopedMessagePipeHandle pipe_; | 37 mojo::ScopedMessagePipeHandle pipe_; |
38 mojo::common::HandleWatcher handle_watcher_; | 38 mojo::common::HandleWatcher handle_watcher_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); | 40 DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace message_port | 43 } // namespace message_port |
44 | 44 |
45 #endif // COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ | 45 #endif // COMPONENTS_MESSAGE_PORT_WEB_MESSAGE_PORT_CHANNEL_IMPL_H_ |
OLD | NEW |