#ifndef CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
#define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
#include "chrome/app/chrome_main_delegate.h"
#include "content/public/browser/browser_main_runner.h"
class ChromeMainDelegateAndroid : public ChromeMainDelegate {
public:
static ChromeMainDelegateAndroid* Create();
virtual bool RegisterApplicationNativeMethods(JNIEnv* env);
protected:
ChromeMainDelegateAndroid();
virtual ~ChromeMainDelegateAndroid();
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
virtual int RunProcess(
const std::string& process_type,
const content::MainFunctionParams& main_function_params) OVERRIDE;
private:
scoped_ptr<content::BrowserMainRunner> browser_runner_;
DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid);
};
#endif