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

Side by Side Diff: components/sync/engine_impl/loopback_server/loopback_connection_manager.cc

Issue 2466463002: Revert of [Sync] IWYU cleanup. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "components/sync/engine_impl/loopback_server/loopback_connection_manage r.h" 4 #include "components/sync/engine_impl/loopback_server/loopback_connection_manage r.h"
5 5
6 #include <string>
7
6 namespace syncer { 8 namespace syncer {
7 9
8 LoopbackConnectionManager::LoopbackConnectionManager( 10 LoopbackConnectionManager::LoopbackConnectionManager(
9 CancelationSignal* signal, 11 CancelationSignal* signal,
10 const base::FilePath& persistent_file) 12 const base::FilePath& persistent_file)
11 : ServerConnectionManager("localhost", 0, false, signal), 13 : ServerConnectionManager("localhost", 0, false, signal),
12 loopback_server_(persistent_file) {} 14 loopback_server_(persistent_file) {}
13 15
14 LoopbackConnectionManager::~LoopbackConnectionManager() {} 16 LoopbackConnectionManager::~LoopbackConnectionManager() {}
15 17
16 bool LoopbackConnectionManager::PostBufferToPath( 18 bool LoopbackConnectionManager::PostBufferToPath(
17 PostBufferParams* params, 19 PostBufferParams* params,
18 const std::string& path, 20 const std::string& path,
19 const std::string& auth_token) { 21 const std::string& auth_token) {
20 loopback_server_.HandleCommand( 22 loopback_server_.HandleCommand(
21 params->buffer_in, &params->response.server_status, 23 params->buffer_in, &params->response.server_status,
22 &params->response.response_code, &params->buffer_out); 24 &params->response.response_code, &params->buffer_out);
23 return params->response.server_status == HttpResponse::SERVER_CONNECTION_OK; 25 return params->response.server_status == HttpResponse::SERVER_CONNECTION_OK;
24 } 26 }
25 27
26 } // namespace syncer 28 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698