| 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ | 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_TRANSPORT_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ | 6 #define COMPONENTS_CAST_CHANNEL_CAST_TRANSPORT_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/sequence_checker.h" | 13 #include "base/sequence_checker.h" |
| 14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
| 15 #include "components/cast_channel/cast_channel_enum.h" | 15 #include "components/cast_channel/cast_channel_enum.h" |
| 16 #include "extensions/browser/api/cast_channel/logger.h" | 16 #include "components/cast_channel/logger.h" |
| 17 #include "extensions/common/api/cast_channel/logging.pb.h" | 17 #include "components/cast_channel/proto/logging.pb.h" |
| 18 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
| 19 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 class DrainableIOBuffer; | 22 class DrainableIOBuffer; |
| 23 class DrainableIOBuffer; | 23 class DrainableIOBuffer; |
| 24 class GrowableIOBuffer; | 24 class GrowableIOBuffer; |
| 25 class Socket; | 25 class Socket; |
| 26 } // namespace net | 26 } // namespace net |
| 27 | 27 |
| 28 namespace extensions { | |
| 29 namespace api { | |
| 30 namespace cast_channel { | 28 namespace cast_channel { |
| 31 class CastMessage; | 29 class CastMessage; |
| 32 class MessageFramer; | 30 class MessageFramer; |
| 33 | 31 |
| 34 class CastTransport { | 32 class CastTransport { |
| 35 public: | 33 public: |
| 36 virtual ~CastTransport() {} | 34 virtual ~CastTransport() {} |
| 37 | 35 |
| 38 // Object to be informed of incoming messages and read errors. | 36 // Object to be informed of incoming messages and read errors. |
| 39 class Delegate { | 37 class Delegate { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 ChannelAuthType channel_auth_; | 216 ChannelAuthType channel_auth_; |
| 219 | 217 |
| 220 // Accumulates details of events and errors, for debugging purposes. | 218 // Accumulates details of events and errors, for debugging purposes. |
| 221 scoped_refptr<Logger> logger_; | 219 scoped_refptr<Logger> logger_; |
| 222 | 220 |
| 223 SEQUENCE_CHECKER(sequence_checker_); | 221 SEQUENCE_CHECKER(sequence_checker_); |
| 224 | 222 |
| 225 DISALLOW_COPY_AND_ASSIGN(CastTransportImpl); | 223 DISALLOW_COPY_AND_ASSIGN(CastTransportImpl); |
| 226 }; | 224 }; |
| 227 } // namespace cast_channel | 225 } // namespace cast_channel |
| 228 } // namespace api | |
| 229 } // namespace extensions | |
| 230 | 226 |
| 231 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ | 227 #endif // COMPONENTS_CAST_CHANNEL_CAST_TRANSPORT_H_ |
| OLD | NEW |