Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: chrome/app/android/chrome_main_delegate_android.h

Issue 1320253002: Merge ChromeMainDelegateStagingAndroid into ChromeMainDelegateAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
6 #define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 6 #define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
7 7
8 #include "chrome/app/chrome_main_delegate.h" 8 #include "chrome/app/chrome_main_delegate.h"
9 #include "content/public/browser/browser_main_runner.h" 9 #include "content/public/browser/browser_main_runner.h"
10 10
11 class SafeBrowsingApiHandler;
12
11 // Android override of ChromeMainDelegate 13 // Android override of ChromeMainDelegate
12 class ChromeMainDelegateAndroid : public ChromeMainDelegate { 14 class ChromeMainDelegateAndroid : public ChromeMainDelegate {
13 public: 15 public:
14 static ChromeMainDelegateAndroid* Create(); 16 static ChromeMainDelegateAndroid* Create();
15 17
16 protected: 18 protected:
17 ChromeMainDelegateAndroid(); 19 ChromeMainDelegateAndroid();
18 ~ChromeMainDelegateAndroid() override; 20 ~ChromeMainDelegateAndroid() override;
19 21
20 bool BasicStartupComplete(int* exit_code) override; 22 bool BasicStartupComplete(int* exit_code) override;
21
22 void SandboxInitialized(const std::string& process_type) override; 23 void SandboxInitialized(const std::string& process_type) override;
23
24 int RunProcess( 24 int RunProcess(
25 const std::string& process_type, 25 const std::string& process_type,
26 const content::MainFunctionParams& main_function_params) override; 26 const content::MainFunctionParams& main_function_params) override;
27 void ProcessExiting(const std::string& process_type) override;
28
29 #if defined(SAFE_BROWSING_DB_REMOTE)
30 virtual SafeBrowsingApiHandler* CreateSafeBrowsingApiHandler();
31 #endif
27 32
28 private: 33 private:
29 scoped_ptr<content::BrowserMainRunner> browser_runner_; 34 scoped_ptr<content::BrowserMainRunner> browser_runner_;
30 35
36 #if defined(SAFE_BROWSING_DB_REMOTE)
37 scoped_ptr<SafeBrowsingApiHandler> safe_browsing_api_handler_;
38 #endif
39
31 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid); 40 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid);
32 }; 41 };
33 42
34 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 43 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698