| // Copyright 2013 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_NET_NETWORK_RESOURCES_H_ | |
| #define COMPONENTS_SYNC_ENGINE_NET_NETWORK_RESOURCES_H_ | |
| #include <memory> | |
| #include "components/sync/engine/net/network_time_update_callback.h" | |
| namespace network { | |
| class SharedURLLoaderFactoryInfo; | |
| } // namespace network | |
| namespace syncer { | |
| class CancelationSignal; | |
| class HttpPostProviderFactory; | |
| class NetworkResources { | |
| public: | |
| virtual ~NetworkResources() {} | |
| virtual std::unique_ptr<HttpPostProviderFactory> GetHttpPostProviderFactory( | |
| std::unique_ptr<network::SharedURLLoaderFactoryInfo> | |
| url_loader_factory_info, | |
| const NetworkTimeUpdateCallback& network_time_update_callback, | |
| CancelationSignal* cancelation_signal) = 0; | |
| }; | |
| } // namespace syncer | |
| #endif // COMPONENTS_SYNC_ENGINE_NET_NETWORK_RESOURCES_H_ |