Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/JobSchedulerConstants.java

Issue 2690163008: Route through a JobService when receiving a message for the GCM Driver (Closed)
Patch Set: findbugs Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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;
nyquist 2017/02/22 11:38:02 Are we sure we want to risk using 0 for a unique I
Peter Beverloo 2017/02/23 17:26:55 Fair enough - updated.
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698