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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #ifndef CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
6 #define CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
7
8 #include "base/android/jni_android.h"
9
10 #include "content/public/common/startup_task_runner.h"
11
12 namespace content {
13
14 class AndroidStartupObserver : public StartupTaskRunner::Observer {
15 public:
16 AndroidStartupObserver(jobject java_observer);
17 ~AndroidStartupObserver();
18
19 static bool RegisterStartupObserver(JNIEnv* env);
20
21 private:
22 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
23
24 virtual void AllStartupTasksRan() OVERRIDE;
25
26 DISALLOW_COPY_AND_ASSIGN(AndroidStartupObserver);
27 };
28
29 } // namespace content
30 #endif // CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698