Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |