Make castv2 performance test work.
[chromium-blink-merge.git] / chrome / app / android / chrome_main_delegate_android.h
blobd03019c842092996e8f592cce4d978d8f19323aa
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 CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
6 #define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
8 #include "chrome/app/chrome_main_delegate.h"
9 #include "content/public/browser/browser_main_runner.h"
11 // Android override of ChromeMainDelegate
12 class ChromeMainDelegateAndroid : public ChromeMainDelegate {
13 public:
14 static ChromeMainDelegateAndroid* Create();
16 protected:
17 ChromeMainDelegateAndroid();
18 ~ChromeMainDelegateAndroid() override;
20 bool BasicStartupComplete(int* exit_code) override;
22 void SandboxInitialized(const std::string& process_type) override;
24 int RunProcess(
25 const std::string& process_type,
26 const content::MainFunctionParams& main_function_params) override;
28 private:
29 scoped_ptr<content::BrowserMainRunner> browser_runner_;
31 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid);
34 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_