OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser; |
| 6 |
| 7 /** |
| 8 * Constants to use when interacting with the android.app.job.JobScheduler. Prim
arily, each job |
| 9 * must have a unique ID in order to avoid state of different jobs mixing up. |
| 10 */ |
| 11 public class JobSchedulerConstants { |
| 12 /** |
| 13 * Job ID for the notification service, which enables us to run a Service Wo
rker in response to |
| 14 * click and close events of notifications. |
| 15 */ |
| 16 public static final int NOTIFICATION_SERVICE_JOB_ID = 0; |
| 17 |
| 18 /** |
| 19 * Job ID for the GCM Driver, which handles received push messages to native
consumers such as |
| 20 * Web Push Notifications, execution of which may exceed the permitted time. |
| 21 */ |
| 22 public static final int GCM_DRIVER_JOB_ID = 1; |
| 23 |
| 24 /** Job ID 2 is reserved for WebView's CrashReceiverService. **/ |
| 25 } |
OLD | NEW |