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

Unified Diff: content/browser/android/android_startup_observer.h

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/browser/android/android_startup_observer.h
diff --git a/content/browser/android/android_startup_observer.h b/content/browser/android/android_startup_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e83f4842476a8f27a4a115c1313a55fd2d619fb
--- /dev/null
+++ b/content/browser/android/android_startup_observer.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 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.
+
+#ifndef CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
+#define CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
+
+#include "base/android/jni_android.h"
+
+#include "content/public/common/startup_task_runner.h"
+
+namespace content {
+
+class AndroidStartupObserver : public StartupTaskRunner::Observer {
+ public:
+ AndroidStartupObserver(jobject java_observer);
+ ~AndroidStartupObserver();
+
+ static bool RegisterStartupObserver(JNIEnv* env);
+
+ private:
+ jobject java_observer_;
Yaron 2013/07/25 00:05:17 Make this a ScopedJavaGlobalRef and clear out the
aberent 2013/07/26 20:36:54 Following a rethink of configuration this class no
+
+ virtual void AllStartupTasksRan() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(AndroidStartupObserver);
+};
+
+} // namespace content
+#endif // CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698