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 CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ | 5 #ifndef CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ |
6 #define CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ | 6 #define CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "ipc/mojo/scoped_ipc_support.h" | 12 #include "ipc/mojo/scoped_ipc_support.h" |
13 #include "third_party/mojo/src/mojo/edk/embedder/channel_info_forward.h" | 13 #include "third_party/mojo/src/mojo/edk/embedder/channel_info_forward.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class MessageLoopProxy; | |
18 class TaskRunner; | 17 class TaskRunner; |
19 } | 18 } |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 | 21 |
23 // ChannelInit handles creation and destruction of the Mojo channel. It is not | 22 // ChannelInit handles creation and destruction of the Mojo channel. It is not |
24 // thread-safe, but may be used on any single thread with a MessageLoop. | 23 // thread-safe, but may be used on any single thread with a MessageLoop. |
25 class CONTENT_EXPORT ChannelInit { | 24 class CONTENT_EXPORT ChannelInit { |
26 public: | 25 public: |
27 ChannelInit(); | 26 ChannelInit(); |
(...skipping 25 matching lines...) Expand all Loading... |
53 | 52 |
54 scoped_ptr<IPC::ScopedIPCSupport> ipc_support_; | 53 scoped_ptr<IPC::ScopedIPCSupport> ipc_support_; |
55 base::WeakPtrFactory<ChannelInit> weak_factory_; | 54 base::WeakPtrFactory<ChannelInit> weak_factory_; |
56 | 55 |
57 DISALLOW_COPY_AND_ASSIGN(ChannelInit); | 56 DISALLOW_COPY_AND_ASSIGN(ChannelInit); |
58 }; | 57 }; |
59 | 58 |
60 } // namespace content | 59 } // namespace content |
61 | 60 |
62 #endif // CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ | 61 #endif // CONTENT_COMMON_MOJO_CHANNEL_INIT_H_ |
OLD | NEW |