OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ | 5 #ifndef SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ |
6 #define SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ | 6 #define SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 // The paths we post to. | 282 // The paths we post to. |
283 std::string proto_sync_path_; | 283 std::string proto_sync_path_; |
284 | 284 |
285 // The auth token to use in authenticated requests. | 285 // The auth token to use in authenticated requests. |
286 std::string auth_token_; | 286 std::string auth_token_; |
287 | 287 |
288 // The previous auth token that is invalid now. | 288 // The previous auth token that is invalid now. |
289 std::string previously_invalidated_token; | 289 std::string previously_invalidated_token; |
290 | 290 |
291 ObserverList<ServerConnectionEventListener> listeners_; | 291 base::ObserverList<ServerConnectionEventListener> listeners_; |
292 | 292 |
293 HttpResponse::ServerConnectionCode server_status_; | 293 HttpResponse::ServerConnectionCode server_status_; |
294 | 294 |
295 base::ThreadChecker thread_checker_; | 295 base::ThreadChecker thread_checker_; |
296 | 296 |
297 // Protects all variables below to allow bailing out of active connections. | 297 // Protects all variables below to allow bailing out of active connections. |
298 base::Lock terminate_connection_lock_; | 298 base::Lock terminate_connection_lock_; |
299 | 299 |
300 // If true, we've been told to terminate IO and expect to be destroyed | 300 // If true, we've been told to terminate IO and expect to be destroyed |
301 // shortly. No future network requests will be made. | 301 // shortly. No future network requests will be made. |
(...skipping 30 matching lines...) Expand all Loading... |
332 bool signal_handler_registered_; | 332 bool signal_handler_registered_; |
333 | 333 |
334 DISALLOW_COPY_AND_ASSIGN(ServerConnectionManager); | 334 DISALLOW_COPY_AND_ASSIGN(ServerConnectionManager); |
335 }; | 335 }; |
336 | 336 |
337 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr); | 337 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr); |
338 | 338 |
339 } // namespace syncer | 339 } // namespace syncer |
340 | 340 |
341 #endif // SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ | 341 #endif // SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_ |
OLD | NEW |