#ifndef COMPONENTS_SYNC_ENGINE_LOOPBACK_SERVER_LOOPBACK_CONNECTION_MANAGER_H_
#define COMPONENTS_SYNC_ENGINE_LOOPBACK_SERVER_LOOPBACK_CONNECTION_MANAGER_H_
#include <string>
#include "components/sync/engine/loopback_server/loopback_server.h"
#include "components/sync/engine/net/server_connection_manager.h"
namespace syncer {
class LoopbackConnectionManager : public ServerConnectionManager {
public:
explicit LoopbackConnectionManager(const base::FilePath& persistent_file);
LoopbackConnectionManager(const LoopbackConnectionManager&) = delete;
LoopbackConnectionManager& operator=(const LoopbackConnectionManager&) =
delete;
~LoopbackConnectionManager() override;
private:
HttpResponse PostBuffer(const std::string& buffer_in,
const std::string& access_token,
bool allow_batching,
std::string* buffer_out) override;
LoopbackServer loopback_server_;
};
}
#endif