root/sync/test/fake_server/fake_server_network_resources.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2014 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 SYNC_TEST_FAKE_SERVER_FAKE_SERVER_NETWORK_RESOURCES_H_
#define SYNC_TEST_FAKE_SERVER_FAKE_SERVER_NETWORK_RESOURCES_H_

#include "base/memory/scoped_ptr.h"
#include "sync/internal_api/public/network_resources.h"
#include "sync/internal_api/public/network_time_update_callback.h"

namespace net {
class URLRequestContextGetter;
}  // namespace net

namespace fake_server {

class FakeServer;
class HttpPostProviderFactory;

class FakeServerNetworkResources : public syncer::NetworkResources {
  public:
   FakeServerNetworkResources(FakeServer* fake_server);
   virtual ~FakeServerNetworkResources();

   // NetworkResources
   virtual
   scoped_ptr<syncer::HttpPostProviderFactory> GetHttpPostProviderFactory(
       net::URLRequestContextGetter* baseline_context_getter,
       const syncer::NetworkTimeUpdateCallback& network_time_update_callback,
       syncer::CancelationSignal* cancelation_signal) OVERRIDE;

  private:
   FakeServer* const fake_server_;
};

}  // namespace fake_server

#endif  // SYNC_TEST_FAKE_SERVER_FAKE_SERVER_NETWORK_RESOURCES_H_

/* [<][>][^][v][top][bottom][index][help] */