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

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

Issue 2106743002: WIP: Local sync only... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after rebase. Created 4 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #include "components/sync/engine_impl/net/loopback_connection_manager.h"
5
6 #include <string>
7
8 #include "components/sync/syncable/directory.h"
9
10 namespace syncer {
11
12 LoopbackConnectionManager::LoopbackConnectionManager(
13 syncable::Directory* directory, CancelationSignal* signal)
14 : ServerConnectionManager("loopback", 0, false, signal) {
15 }
16
17 LoopbackConnectionManager::~LoopbackConnectionManager() {
18 }
19
20 bool LoopbackConnectionManager::PostBufferToPath(
21 PostBufferParams* params,
22 const std::string& path,
23 const std::string& auth_token) {
24 loopback_server_.HandleCommand(params->buffer_in,
25 &params->response.server_status,
26 &params->response.response_code,
27 &params->buffer_out);
28 return params->response.server_status == HttpResponse::SERVER_CONNECTION_OK;
29 }
30
31 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698