Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: sync/engine/net/server_connection_manager.cc

Issue 10645004: [Sync] Move HttpBridge to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/syncer_proto_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (conn_mgr_->server_status_ != response_->server_status) { 161 if (conn_mgr_->server_status_ != response_->server_status) {
162 conn_mgr_->server_status_ = response_->server_status; 162 conn_mgr_->server_status_ = response_->server_status;
163 conn_mgr_->NotifyStatusChanged(); 163 conn_mgr_->NotifyStatusChanged();
164 return; 164 return;
165 } 165 }
166 } 166 }
167 167
168 ServerConnectionManager::ServerConnectionManager( 168 ServerConnectionManager::ServerConnectionManager(
169 const string& server, 169 const string& server,
170 int port, 170 int port,
171 bool use_ssl, 171 bool use_ssl)
172 const string& user_agent)
173 : sync_server_(server), 172 : sync_server_(server),
174 sync_server_port_(port), 173 sync_server_port_(port),
175 user_agent_(user_agent),
176 use_ssl_(use_ssl), 174 use_ssl_(use_ssl),
177 proto_sync_path_(kSyncServerSyncPath), 175 proto_sync_path_(kSyncServerSyncPath),
178 get_time_path_(kSyncServerGetTimePath), 176 get_time_path_(kSyncServerGetTimePath),
179 server_status_(HttpResponse::NONE), 177 server_status_(HttpResponse::NONE),
180 terminated_(false), 178 terminated_(false),
181 active_connection_(NULL) { 179 active_connection_(NULL) {
182 } 180 }
183 181
184 ServerConnectionManager::~ServerConnectionManager() { 182 ServerConnectionManager::~ServerConnectionManager() {
185 } 183 }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 324 }
327 325
328 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) { 326 std::ostream& operator << (std::ostream& s, const struct HttpResponse& hr) {
329 s << " Response Code (bogus on error): " << hr.response_code; 327 s << " Response Code (bogus on error): " << hr.response_code;
330 s << " Content-Length (bogus on error): " << hr.content_length; 328 s << " Content-Length (bogus on error): " << hr.content_length;
331 s << " Server Status: " << hr.server_status; 329 s << " Server Status: " << hr.server_status;
332 return s; 330 return s;
333 } 331 }
334 332
335 } // namespace csync 333 } // namespace csync
OLDNEW
« no previous file with comments | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/syncer_proto_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698