#ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
#define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/browser_main_parts.h"
namespace base {
class MessageLoop;
}
namespace android_webview {
class AwBrowserContext;
class AwBrowserMainParts : public content::BrowserMainParts {
public:
explicit AwBrowserMainParts(AwBrowserContext* browser_context);
virtual ~AwBrowserMainParts();
virtual void PreEarlyInitialization() OVERRIDE;
virtual int PreCreateThreads() OVERRIDE;
virtual void PreMainMessageLoopRun() OVERRIDE;
virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
private:
scoped_ptr<base::MessageLoop> main_message_loop_;
AwBrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts);
};
}
#endif