| 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 NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
| 6 #define NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/simple_thread.h" | 9 #include "base/threading/simple_thread.h" |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 private: | 56 private: |
| 57 void MaybeNotifyOfHandshakeConfirmation(); | 57 void MaybeNotifyOfHandshakeConfirmation(); |
| 58 | 58 |
| 59 base::WaitableEvent confirmed_; // Notified when the first handshake is | 59 base::WaitableEvent confirmed_; // Notified when the first handshake is |
| 60 // confirmed. | 60 // confirmed. |
| 61 base::WaitableEvent pause_; // Notified when the server should pause. | 61 base::WaitableEvent pause_; // Notified when the server should pause. |
| 62 base::WaitableEvent paused_; // Notitied when the server has paused | 62 base::WaitableEvent paused_; // Notitied when the server has paused |
| 63 base::WaitableEvent resume_; // Notified when the server should resume. | 63 base::WaitableEvent resume_; // Notified when the server should resume. |
| 64 base::WaitableEvent quit_; // Notified when the server should quit. | 64 base::WaitableEvent quit_; // Notified when the server should quit. |
| 65 | 65 |
| 66 scoped_ptr<QuicServer> server_; | 66 std::unique_ptr<QuicServer> server_; |
| 67 IPEndPoint address_; | 67 IPEndPoint address_; |
| 68 base::Lock port_lock_; | 68 base::Lock port_lock_; |
| 69 int port_; | 69 int port_; |
| 70 | 70 |
| 71 bool initialized_; | 71 bool initialized_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(ServerThread); | 73 DISALLOW_COPY_AND_ASSIGN(ServerThread); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace test | 76 } // namespace test |
| 77 } // namespace net | 77 } // namespace net |
| 78 | 78 |
| 79 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 79 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
| OLD | NEW |