| 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..4ea10dcf8a4cc8b93c51306b7e50cbbce26dc57e
|
| --- /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 AllTasksRun();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AndroidStartupObserver);
|
| +};
|
| +
|
| +} // namespace content
|
| +#endif // CONTENT_BROWSER_ANDROID_ANDROID_STARTUP_OBSERVER_H_
|
|
|