OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_COMMON_CHANNEL_INIT_H_ | 5 #ifndef MOJO_EMBEDDER_CHANNEL_INIT_H_ |
6 #define MOJO_COMMON_CHANNEL_INIT_H_ | 6 #define MOJO_EMBEDDER_CHANNEL_INIT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "mojo/common/mojo_common_export.h" | 11 #include "mojo/common/mojo_common_export.h" |
12 #include "mojo/public/cpp/system/core.h" | 12 #include "mojo/public/cpp/system/core.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class MessageLoopProxy; | 15 class MessageLoopProxy; |
16 class TaskRunner; | 16 class TaskRunner; |
17 } | 17 } |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace embedder { | 20 namespace embedder { |
21 struct ChannelInfo; | 21 struct ChannelInfo; |
22 } | 22 } |
23 | 23 |
24 namespace common { | 24 namespace common { |
viettrungluu
2014/06/18 20:35:03
Probably you should move it inside the mojo::embed
qsr
2014/06/18 20:54:03
Done.
| |
25 | 25 |
26 // ChannelInit handle creation (and destruction) of the mojo channel. It is | 26 // ChannelInit handle creation (and destruction) of the mojo channel. It is |
27 // expected that this class is created and destroyed on the main thread. | 27 // expected that this class is created and destroyed on the main thread. |
28 class MOJO_COMMON_EXPORT ChannelInit { | 28 class MOJO_COMMON_EXPORT ChannelInit { |
29 public: | 29 public: |
30 ChannelInit(); | 30 ChannelInit(); |
31 ~ChannelInit(); | 31 ~ChannelInit(); |
32 | 32 |
33 // Initializes the channel. This takes ownership of |file|. Returns the | 33 // Initializes the channel. This takes ownership of |file|. Returns the |
34 // primordial MessagePipe for the channel. | 34 // primordial MessagePipe for the channel. |
(...skipping 14 matching lines...) Expand all Loading... | |
49 embedder::ChannelInfo* channel_info_; | 49 embedder::ChannelInfo* channel_info_; |
50 | 50 |
51 base::WeakPtrFactory<ChannelInit> weak_factory_; | 51 base::WeakPtrFactory<ChannelInit> weak_factory_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(ChannelInit); | 53 DISALLOW_COPY_AND_ASSIGN(ChannelInit); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace common | 56 } // namespace common |
57 } // namespace mojo | 57 } // namespace mojo |
58 | 58 |
59 #endif // MOJO_COMMON_CHANNEL_INIT_H_ | 59 #endif // MOJO_EMBEDDER_CHANNEL_INIT_H_ |
OLD | NEW |