| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 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 |
| 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "components/sync/engine_impl/net/loopback_server/loopback_server.h" |
| 11 #include "components/sync/engine_impl/net/server_connection_manager.h" |
| 12 |
| 13 namespace syncer { |
| 14 |
| 15 class LoopbackConnectionManager : public ServerConnectionManager { |
| 16 public: |
| 17 LoopbackConnectionManager(syncable::Directory*, CancelationSignal* signal); |
| 18 ~LoopbackConnectionManager() override; |
| 19 |
| 20 protected: |
| 21 // Overridden ServerConnectionManager functions. |
| 22 bool PostBufferToPath(PostBufferParams* params, |
| 23 const std::string& path, |
| 24 const std::string& auth_token) override; |
| 25 |
| 26 private: |
| 27 // The loopback server that will handle the requests locally. |
| 28 LoopbackServer loopback_server_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(LoopbackConnectionManager); |
| 31 }; |
| 32 |
| 33 } // namespace syncer |
| 34 |
| 35 #endif // COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_CONNECTION_MANAGER_H_ |
| OLD | NEW |