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

Unified Diff: components/sync/engine_impl/net/loopback_connection_manager.h

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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « components/sync/driver/startup_controller.cc ('k') | components/sync/engine_impl/net/loopback_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698