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 "chrome/browser/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 "chrome/browser/sync/engine/net/url_translator.h" | |
16 #include "chrome/browser/sync/engine/syncer.h" | |
17 #include "chrome/browser/sync/engine/syncproto.h" | |
18 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
19 #include "net/http/http_status_code.h" | 16 #include "net/http/http_status_code.h" |
| 17 #include "sync/engine/net/url_translator.h" |
| 18 #include "sync/engine/syncer.h" |
| 19 #include "sync/engine/syncproto.h" |
20 #include "sync/protocol/sync.pb.h" | 20 #include "sync/protocol/sync.pb.h" |
21 | 21 |
22 namespace browser_sync { | 22 namespace browser_sync { |
23 | 23 |
24 using std::ostream; | 24 using std::ostream; |
25 using std::string; | 25 using std::string; |
26 using std::vector; | 26 using std::vector; |
27 | 27 |
28 static const char kSyncServerSyncPath[] = "/command/"; | 28 static const char kSyncServerSyncPath[] = "/command/"; |
29 | 29 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 405 } |
406 | 406 |
407 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { | 407 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { |
408 s << " Response Code (bogus on error): " << hr.response_code; | 408 s << " Response Code (bogus on error): " << hr.response_code; |
409 s << " Content-Length (bogus on error): " << hr.content_length; | 409 s << " Content-Length (bogus on error): " << hr.content_length; |
410 s << " Server Status: " << hr.server_status; | 410 s << " Server Status: " << hr.server_status; |
411 return s; | 411 return s; |
412 } | 412 } |
413 | 413 |
414 } // namespace browser_sync | 414 } // namespace browser_sync |
OLD | NEW |