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 #include "components/sync/engine_impl/net/server_connection_manager.h" | 5 #include "components/sync/engine_impl/net/server_connection_manager.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <stdint.h> | |
9 | 8 |
10 #include <ostream> | 9 #include <ostream> |
11 #include <string> | |
12 #include <vector> | 10 #include <vector> |
13 | 11 |
14 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
15 #include "build/build_config.h" | 13 #include "build/build_config.h" |
16 #include "components/sync/base/cancelation_signal.h" | 14 #include "components/sync/base/cancelation_signal.h" |
17 #include "components/sync/engine_impl/net/url_translator.h" | 15 #include "components/sync/engine_impl/net/url_translator.h" |
18 #include "components/sync/engine_impl/syncer.h" | 16 #include "components/sync/engine_impl/syncer.h" |
19 #include "components/sync/protocol/sync.pb.h" | 17 #include "components/sync/protocol/sync.pb.h" |
20 #include "components/sync/syncable/directory.h" | 18 #include "components/sync/syncable/directory.h" |
21 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 328 |
331 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr) { | 329 std::ostream& operator<<(std::ostream& s, const struct HttpResponse& hr) { |
332 s << " Response Code (bogus on error): " << hr.response_code; | 330 s << " Response Code (bogus on error): " << hr.response_code; |
333 s << " Content-Length (bogus on error): " << hr.content_length; | 331 s << " Content-Length (bogus on error): " << hr.content_length; |
334 s << " Server Status: " | 332 s << " Server Status: " |
335 << HttpResponse::GetServerConnectionCodeString(hr.server_status); | 333 << HttpResponse::GetServerConnectionCodeString(hr.server_status); |
336 return s; | 334 return s; |
337 } | 335 } |
338 | 336 |
339 } // namespace syncer | 337 } // namespace syncer |
OLD | NEW |