OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/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" | 15 #include "chrome/browser/sync/engine/net/url_translator.h" |
16 #include "chrome/browser/sync/engine/syncapi.h" | 16 #include "chrome/browser/sync/engine/syncapi.h" |
17 #include "chrome/browser/sync/engine/syncer.h" | 17 #include "chrome/browser/sync/engine/syncer.h" |
18 #include "chrome/browser/sync/engine/syncproto.h" | 18 #include "chrome/browser/sync/engine/syncproto.h" |
19 #include "chrome/browser/sync/protocol/sync.pb.h" | 19 #include "chrome/browser/sync/protocol/sync.pb.h" |
20 #include "chrome/browser/sync/syncable/directory_manager.h" | 20 #include "chrome/browser/sync/syncable/directory_manager.h" |
21 #include "chrome/common/chrome_switches.h" | |
22 #include "chrome/common/net/http_return.h" | 21 #include "chrome/common/net/http_return.h" |
23 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
24 | 23 |
25 namespace browser_sync { | 24 namespace browser_sync { |
26 | 25 |
27 using std::ostream; | 26 using std::ostream; |
28 using std::string; | 27 using std::string; |
29 using std::vector; | 28 using std::vector; |
30 | 29 |
31 static const char kSyncServerSyncPath[] = "/command/"; | 30 static const char kSyncServerSyncPath[] = "/command/"; |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } | 388 } |
390 | 389 |
391 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { | 390 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { |
392 s << " Response Code (bogus on error): " << hr.response_code; | 391 s << " Response Code (bogus on error): " << hr.response_code; |
393 s << " Content-Length (bogus on error): " << hr.content_length; | 392 s << " Content-Length (bogus on error): " << hr.content_length; |
394 s << " Server Status: " << hr.server_status; | 393 s << " Server Status: " << hr.server_status; |
395 return s; | 394 return s; |
396 } | 395 } |
397 | 396 |
398 } // namespace browser_sync | 397 } // namespace browser_sync |
OLD | NEW |