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..f9be3fb15a8cac83d41860422429ba939c5c5f33 |
| --- /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_; |
| + |
| + virtual void OVERRIDE AllStartupTasksRan(); |
|
Yaron
2013/07/23 02:14:03
OVERRIDE is typically placed at the end
aberent
2013/07/23 13:45:03
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(AndroidStartupObserver); |
| +}; |
| + |
| +} // namespace content |
| +#endif // CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_ |