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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/StartupObserver.java

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run the later parts of startup as UI thread tasks - patch for Yaron's comments Created 7 years, 5 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: content/public/android/java/src/org/chromium/content/browser/StartupObserver.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/StartupObserver.java b/content/public/android/java/src/org/chromium/content/browser/StartupObserver.java
new file mode 100644
index 0000000000000000000000000000000000000000..c140308b8788bf226f26e28167b6ba844aaec7b0
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/StartupObserver.java
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
Yaron 2013/07/25 00:05:17 2013
aberent 2013/07/26 20:36:54 Class no longer exists, but I have checked the cop
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.content.browser;
+
+import org.chromium.base.CalledByNative;
+
+/**
+ * Abstract class for observing the completion of the C++ startup tasks. If you
+ * want an observer create a concrete object derived from this and pass it to
+ * ContentMain.Start() (and hence to content::start() on the C++ side).
+ */
+public abstract class StartupObserver {
+ /**
+ * Called by the C++ side when all the C++ startup tasks have run.
+ */
+ @CalledByNative
+ public abstract void allStartupTasksRan();
+}

Powered by Google App Engine
This is Rietveld 408576698