OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYSTEM_CHANNEL_H_ | 5 #ifndef MOJO_SYSTEM_CHANNEL_H_ |
6 #define MOJO_SYSTEM_CHANNEL_H_ | 6 #define MOJO_SYSTEM_CHANNEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 return platform_support_; | 125 return platform_support_; |
126 } | 126 } |
127 | 127 |
128 private: | 128 private: |
129 friend class base::RefCountedThreadSafe<Channel>; | 129 friend class base::RefCountedThreadSafe<Channel>; |
130 virtual ~Channel(); | 130 virtual ~Channel(); |
131 | 131 |
132 // |RawChannel::Delegate| implementation (only called on the creation thread): | 132 // |RawChannel::Delegate| implementation (only called on the creation thread): |
133 virtual void OnReadMessage( | 133 virtual void OnReadMessage( |
134 const MessageInTransit::View& message_view, | 134 const MessageInTransit::View& message_view, |
135 embedder::ScopedPlatformHandleVectorPtr platform_handles) OVERRIDE; | 135 embedder::ScopedPlatformHandleVectorPtr platform_handles) override; |
136 virtual void OnError(Error error) OVERRIDE; | 136 virtual void OnError(Error error) override; |
137 | 137 |
138 // Helpers for |OnReadMessage| (only called on the creation thread): | 138 // Helpers for |OnReadMessage| (only called on the creation thread): |
139 void OnReadMessageForDownstream( | 139 void OnReadMessageForDownstream( |
140 const MessageInTransit::View& message_view, | 140 const MessageInTransit::View& message_view, |
141 embedder::ScopedPlatformHandleVectorPtr platform_handles); | 141 embedder::ScopedPlatformHandleVectorPtr platform_handles); |
142 void OnReadMessageForChannel( | 142 void OnReadMessageForChannel( |
143 const MessageInTransit::View& message_view, | 143 const MessageInTransit::View& message_view, |
144 embedder::ScopedPlatformHandleVectorPtr platform_handles); | 144 embedder::ScopedPlatformHandleVectorPtr platform_handles); |
145 | 145 |
146 // Removes the message pipe endpoint with the given local ID, which must exist | 146 // Removes the message pipe endpoint with the given local ID, which must exist |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // be checked for existence before use. | 185 // be checked for existence before use. |
186 MessageInTransit::EndpointId next_local_id_; | 186 MessageInTransit::EndpointId next_local_id_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(Channel); | 188 DISALLOW_COPY_AND_ASSIGN(Channel); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace system | 191 } // namespace system |
192 } // namespace mojo | 192 } // namespace mojo |
193 | 193 |
194 #endif // MOJO_SYSTEM_CHANNEL_H_ | 194 #endif // MOJO_SYSTEM_CHANNEL_H_ |
OLD | NEW |