blob: 15da514166ea89b725620ac69246a30a1dd44f34 [file] [log] [blame]
// Copyright 2017 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_DOWNLOAD_INTERNAL_SERVICE_CONFIG_IMPL_H_
#define COMPONENTS_DOWNLOAD_INTERNAL_SERVICE_CONFIG_IMPL_H_
#include "base/macros.h"
#include "components/download/public/service_config.h"
namespace download {
struct Configuration;
class ServiceConfigImpl : public ServiceConfig {
public:
explicit ServiceConfigImpl(Configuration* config);
~ServiceConfigImpl() override;
// ServiceConfig implementation.
uint32_t GetMaxScheduledDownloadsPerClient() const override;
const base::TimeDelta& GetFileKeepAliveTime() const override;
private:
struct Configuration* config_;
DISALLOW_COPY_AND_ASSIGN(ServiceConfigImpl);
};
} // namespace download
#endif // COMPONENTS_DOWNLOAD_INTERNAL_SERVICE_CONFIG_IMPL_H_