blob: dc35d697b56f6c6c01184d163175ac24720398aa [file] [log] [blame]
// Copyright 2019 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 WEBLAYER_BROWSER_WEBLAYER_VARIATIONS_SERVICE_CLIENT_H_
#define WEBLAYER_BROWSER_WEBLAYER_VARIATIONS_SERVICE_CLIENT_H_
#include <string>
#include "base/macros.h"
#include "base/memory/scoped_refptr.h"
#include "components/variations/service/variations_service_client.h"
namespace weblayer {
class SystemNetworkContextManager;
// WebLayerVariationsServiceClient provides an implementation of
// VariationsServiceClient, all members are currently stubs for WebLayer.
class WebLayerVariationsServiceClient
: public variations::VariationsServiceClient {
public:
explicit WebLayerVariationsServiceClient(
SystemNetworkContextManager* network_context_manager);
~WebLayerVariationsServiceClient() override;
private:
// variations::VariationsServiceClient:
base::OnceCallback<base::Version(void)> GetVersionForSimulationCallback()
override;
scoped_refptr<network::SharedURLLoaderFactory> GetURLLoaderFactory() override;
network_time::NetworkTimeTracker* GetNetworkTimeTracker() override;
version_info::Channel GetChannel() override;
bool OverridesRestrictParameter(std::string* parameter) override;
bool IsEnterprise() override;
SystemNetworkContextManager* network_context_manager_;
DISALLOW_COPY_AND_ASSIGN(WebLayerVariationsServiceClient);
};
} // namespace weblayer
#endif // WEBLAYER_BROWSER_WEBLAYER_VARIATIONS_SERVICE_CLIENT_H_