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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java

Issue 2066593003: Add a general purpose facility for letting background tasks wait until (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java
new file mode 100644
index 0000000000000000000000000000000000000000..5a388f1576e0b98e0817bbe8e02c5347ee79fa9d
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeBackgroundServiceWaiter.java
@@ -0,0 +1,13 @@
+// Copyright 2016 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.
+
+package org.chromium.chrome.browser;
+
+/**
+ * Interface for a task run by ChromeBackgroundService to report completion,
+ * and have ChromeBackgroundService finish waiting for the task.
+ */
+public interface ChromeBackgroundServiceWaiter {
+ public void onWaitDone();
+}

Powered by Google App Engine
This is Rietveld 408576698