blob: 40cf2e3d6bcd6f0c0df5da77369b1f9318aa1df0 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_
#define COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_
#include "base/time/time.h"
namespace metrics {
// Returns UMA log upload interval based on OS. If
// |use_cellular_upload_interval| is true, this returns an interval suitable for
// metered cellular connections. Otherwise, this returns an interval suitable
// for unmetered (ex. WiFi) connections.
base::TimeDelta GetUploadInterval(bool use_cellular_upload_interval);
// Returns true if current connection type is cellular and the platform supports
// using a separate interval for cellular connections (Android only).
bool ShouldUseCellularUploadInterval();
} // namespace metrics
#endif // COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_