OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ | 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ |
6 #define NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ | 6 #define NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
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 "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
15 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
16 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
20 class ScopedPortException; | 21 class ScopedPortException; |
21 | 22 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Factory for creating the time-out task. This takes care of revoking | 144 // Factory for creating the time-out task. This takes care of revoking |
144 // outstanding tasks when |this| is deleted. | 145 // outstanding tasks when |this| is deleted. |
145 base::WeakPtrFactory<SpawnerCommunicator> weak_factory_; | 146 base::WeakPtrFactory<SpawnerCommunicator> weak_factory_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(SpawnerCommunicator); | 148 DISALLOW_COPY_AND_ASSIGN(SpawnerCommunicator); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace net | 151 } // namespace net |
151 | 152 |
152 #endif // NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ | 153 #endif // NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ |
OLD | NEW |