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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ |
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ | 6 #define EXTENSIONS_BROWSER_API_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/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "extensions/browser/api/cast_channel/logger.h" | 15 #include "extensions/browser/api/cast_channel/logger.h" |
16 #include "extensions/common/api/cast_channel.h" | 16 #include "extensions/common/api/cast_channel.h" |
17 #include "extensions/common/api/cast_channel/logging.pb.h" | 17 #include "extensions/common/api/cast_channel/logging.pb.h" |
18 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 class DrainableIOBuffer; | 21 class DrainableIOBuffer; |
22 class IPEndPoint; | 22 class IPEndPoint; |
23 class IOBuffer; | |
24 class DrainableIOBuffer; | 23 class DrainableIOBuffer; |
25 class GrowableIOBuffer; | 24 class GrowableIOBuffer; |
26 class Socket; | 25 class Socket; |
27 } // namespace net | 26 } // namespace net |
28 | 27 |
29 namespace extensions { | 28 namespace extensions { |
30 namespace api { | 29 namespace api { |
31 namespace cast_channel { | 30 namespace cast_channel { |
32 class CastMessage; | 31 class CastMessage; |
33 struct LastErrors; | |
34 class Logger; | 32 class Logger; |
35 class MessageFramer; | 33 class MessageFramer; |
36 | 34 |
37 class CastTransport { | 35 class CastTransport { |
38 public: | 36 public: |
39 virtual ~CastTransport() {} | 37 virtual ~CastTransport() {} |
40 | 38 |
41 // Object to be informed of incoming messages and read errors. | 39 // Object to be informed of incoming messages and read errors. |
42 class Delegate { | 40 class Delegate { |
43 public: | 41 public: |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Accumulates details of events and errors, for debugging purposes. | 216 // Accumulates details of events and errors, for debugging purposes. |
219 scoped_refptr<Logger> logger_; | 217 scoped_refptr<Logger> logger_; |
220 | 218 |
221 DISALLOW_COPY_AND_ASSIGN(CastTransportImpl); | 219 DISALLOW_COPY_AND_ASSIGN(CastTransportImpl); |
222 }; | 220 }; |
223 } // namespace cast_channel | 221 } // namespace cast_channel |
224 } // namespace api | 222 } // namespace api |
225 } // namespace extensions | 223 } // namespace extensions |
226 | 224 |
227 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ | 225 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TRANSPORT_H_ |
OLD | NEW |