Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: net/tools/quic/test_tools/server_thread.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/quic/test_tools/quic_test_server.h ('k') | net/tools/testserver/run_testserver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_server.h ('k') | net/tools/testserver/run_testserver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698