blob: 8d3bdd22ef7789b2f0a91cc0d8df8984967449c8 [file] [log] [blame]
// Copyright 2015 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.
module content;
enum BackgroundSyncNetworkState {
ANY,
AVOID_CELLULAR,
ONLINE,
MAX=ONLINE
};
enum BackgroundSyncPowerState {
AUTO,
AVOID_DRAINING,
MAX=AVOID_DRAINING
};
enum BackgroundSyncPeriodicity {
PERIODIC,
ONE_SHOT,
MAX=ONE_SHOT
};
struct SyncRegistration {
int64 id = -1;
BackgroundSyncPeriodicity periodicity = ONE_SHOT;
string tag = "";
uint64 min_period_ms = 0;
BackgroundSyncNetworkState network_state = ONLINE;
BackgroundSyncPowerState power_state = AUTO;
};