| Index: content/public/common/background_sync.mojom
|
| diff --git a/content/public/common/background_sync.mojom b/content/public/common/background_sync.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8d3bdd22ef7789b2f0a91cc0d8df8984967449c8
|
| --- /dev/null
|
| +++ b/content/public/common/background_sync.mojom
|
| @@ -0,0 +1,33 @@
|
| +// 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;
|
| +};
|
|
|