chromium/services/device/geolocation/wifi_polling_policy.h

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SERVICES_DEVICE_GEOLOCATION_WIFI_POLLING_POLICY_H_
#define SERVICES_DEVICE_GEOLOCATION_WIFI_POLLING_POLICY_H_

#include <memory>

#include "base/check.h"
#include "base/time/time.h"
#include "services/device/public/mojom/geolocation_internals.mojom.h"

namespace device {

// Allows sharing and mocking of the update polling policy function.
class WifiPollingPolicy {};

// Generic polling policy, constants are compile-time parameterized to allow
// tuning on a per-platform basis.
template <int DEFAULT_INTERVAL,
          int NO_CHANGE_INTERVAL,
          int TWO_NO_CHANGE_INTERVAL,
          int NO_WIFI_INTERVAL>
class GenericWifiPollingPolicy : public WifiPollingPolicy {};

}  // namespace device

#endif  // SERVICES_DEVICE_GEOLOCATION_WIFI_POLLING_POLICY_H_