| 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" | 19 #include "sync/engine/syncproto.h" |
| 20 #include "sync/protocol/sync.pb.h" | 20 #include "sync/protocol/sync.pb.h" |
| 21 #include "sync/syncable/directory.h" | 21 #include "sync/syncable/directory.h" |
| 22 | 22 |
| 23 namespace csync { | 23 namespace syncer { |
| 24 | 24 |
| 25 using std::ostream; | 25 using std::ostream; |
| 26 using std::string; | 26 using std::string; |
| 27 using std::vector; | 27 using std::vector; |
| 28 | 28 |
| 29 static const char kSyncServerSyncPath[] = "/command/"; | 29 static const char kSyncServerSyncPath[] = "/command/"; |
| 30 | 30 |
| 31 // At the /time/ path of the sync server, we expect to find a very simple | 31 // At the /time/ path of the sync server, we expect to find a very simple |
| 32 // time of day service that we can use to synchronize the local clock with | 32 // time of day service that we can use to synchronize the local clock with |
| 33 // server time. | 33 // server time. |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return true; | 323 return true; |
| 324 } | 324 } |
| 325 | 325 |
| 326 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { | 326 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { |
| 327 s << " Response Code (bogus on error): " << hr.response_code; | 327 s << " Response Code (bogus on error): " << hr.response_code; |
| 328 s << " Content-Length (bogus on error): " << hr.content_length; | 328 s << " Content-Length (bogus on error): " << hr.content_length; |
| 329 s << " Server Status: " << hr.server_status; | 329 s << " Server Status: " << hr.server_status; |
| 330 return s; | 330 return s; |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace csync | 333 } // namespace syncer |
| OLD | NEW |