| Index: components/sync/engine_impl/net/loopback_connection_manager.h
|
| diff --git a/components/sync/engine_impl/net/loopback_connection_manager.h b/components/sync/engine_impl/net/loopback_connection_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..800c7faaa3c718e9dbe29f91dd2aee710f5680a3
|
| --- /dev/null
|
| +++ b/components/sync/engine_impl/net/loopback_connection_manager.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_
|
| +#define COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "components/sync/engine_impl/net/loopback_server/loopback_server.h"
|
| +#include "components/sync/engine_impl/net/server_connection_manager.h"
|
| +
|
| +namespace syncer {
|
| +
|
| +class LoopbackConnectionManager : public ServerConnectionManager {
|
| + public:
|
| + LoopbackConnectionManager(syncable::Directory*, CancelationSignal* signal);
|
| + ~LoopbackConnectionManager() override;
|
| +
|
| + protected:
|
| + // Overridden ServerConnectionManager functions.
|
| + bool PostBufferToPath(PostBufferParams* params,
|
| + const std::string& path,
|
| + const std::string& auth_token) override;
|
| +
|
| + private:
|
| + // The loopback server that will handle the requests locally.
|
| + LoopbackServer loopback_server_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(LoopbackConnectionManager);
|
| +};
|
| +
|
| +} // namespace syncer
|
| +
|
| +#endif // COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_
|
|
|