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_; |
| 23 |
| 24 virtual void OVERRIDE AllTasksRun(); |
| 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(AndroidStartupObserver); |
| 27 }; |
| 28 |
| 29 } // namespace content |
| 30 #endif // CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_ |
OLD | NEW |