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