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 "sync/engine/net/server_connection_manager.h" | 5 #include "sync/engine/net/server_connection_manager.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 | 8 |
9 #include <ostream> | 9 #include <ostream> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/http/http_status_code.h" | 16 #include "net/http/http_status_code.h" |
17 #include "sync/engine/net/url_translator.h" | 17 #include "sync/engine/net/url_translator.h" |
18 #include "sync/engine/syncer.h" | 18 #include "sync/engine/syncer.h" |
19 #include "sync/engine/syncproto.h" | |
20 #include "sync/protocol/sync.pb.h" | 19 #include "sync/protocol/sync.pb.h" |
21 #include "sync/syncable/directory.h" | 20 #include "sync/syncable/directory.h" |
22 | 21 |
23 namespace syncer { | 22 namespace syncer { |
24 | 23 |
25 using std::ostream; | 24 using std::ostream; |
26 using std::string; | 25 using std::string; |
27 using std::vector; | 26 using std::vector; |
28 | 27 |
29 static const char kSyncServerSyncPath[] = "/command/"; | 28 static const char kSyncServerSyncPath[] = "/command/"; |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 324 |
326 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { | 325 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { |
327 s << " Response Code (bogus on error): " << hr.response_code; | 326 s << " Response Code (bogus on error): " << hr.response_code; |
328 s << " Content-Length (bogus on error): " << hr.content_length; | 327 s << " Content-Length (bogus on error): " << hr.content_length; |
329 s << " Server Status: " | 328 s << " Server Status: " |
330 << HttpResponse::GetServerConnectionCodeString(hr.server_status); | 329 << HttpResponse::GetServerConnectionCodeString(hr.server_status); |
331 return s; | 330 return s; |
332 } | 331 } |
333 | 332 |
334 } // namespace syncer | 333 } // namespace syncer |
OLD | NEW |