| 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 REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ |
| 6 #define REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ | 6 #define REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
| 15 #include "remoting/protocol/datagram_channel_factory.h" | 16 #include "remoting/protocol/datagram_channel_factory.h" |
| 16 #include "remoting/protocol/p2p_datagram_socket.h" | 17 #include "remoting/protocol/p2p_datagram_socket.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
| 20 } | 21 } |
| 21 | 22 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 137 |
| 137 base::WeakPtrFactory<FakeDatagramChannelFactory> weak_factory_; | 138 base::WeakPtrFactory<FakeDatagramChannelFactory> weak_factory_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(FakeDatagramChannelFactory); | 140 DISALLOW_COPY_AND_ASSIGN(FakeDatagramChannelFactory); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace protocol | 143 } // namespace protocol |
| 143 } // namespace remoting | 144 } // namespace remoting |
| 144 | 145 |
| 145 #endif // REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ | 146 #endif // REMOTING_PROTOCOL_FAKE_DATAGRAM_SOCKET_H_ |
| OLD | NEW |