OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.services.gcm; | 5 package org.chromium.chrome.browser.services.gcm; |
6 | 6 |
7 import android.annotation.TargetApi; | 7 import android.annotation.TargetApi; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.os.Build; | 9 import android.os.Build; |
10 import android.os.Bundle; | 10 import android.os.Bundle; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 * Called when the system has determined that processing the GCM message mus
t be stopped. | 48 * Called when the system has determined that processing the GCM message mus
t be stopped. |
49 * | 49 * |
50 * @return Boolean indicating whether the task has to be rescheduled. | 50 * @return Boolean indicating whether the task has to be rescheduled. |
51 */ | 51 */ |
52 @MainThread | 52 @MainThread |
53 @Override | 53 @Override |
54 public boolean onStopTask(Context context, TaskParameters taskParameters) { | 54 public boolean onStopTask(Context context, TaskParameters taskParameters) { |
55 // The GCM Driver has no mechanism for aborting previously dispatched me
ssages. | 55 // The GCM Driver has no mechanism for aborting previously dispatched me
ssages. |
56 return false; | 56 return false; |
57 } | 57 } |
| 58 |
| 59 @MainThread |
| 60 @Override |
| 61 public void reschedule(Context context) { |
| 62 // Needs appropriate implementation. |
| 63 } |
58 } | 64 } |
OLD | NEW |