Fix race condition in gyp/ninja builds.
[chromium-blink-merge.git] / android_webview / browser / aw_browser_main_parts.h
blob8beec92c9577a3371b585bcf82527cb49b790f5e
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/browser_main_parts.h"
12 namespace base {
13 class MessageLoop;
16 namespace android_webview {
18 class AwBrowserContext;
20 class AwBrowserMainParts : public content::BrowserMainParts {
21 public:
22 explicit AwBrowserMainParts(AwBrowserContext* browser_context);
23 virtual ~AwBrowserMainParts();
25 // Overriding methods from content::BrowserMainParts.
26 virtual void PreEarlyInitialization() OVERRIDE;
27 virtual int PreCreateThreads() OVERRIDE;
28 virtual void PreMainMessageLoopRun() OVERRIDE;
29 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
31 private:
32 // Android specific UI MessageLoop.
33 scoped_ptr<base::MessageLoop> main_message_loop_;
35 AwBrowserContext* browser_context_; // weak
37 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts);
40 } // namespace android_webview
42 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_