| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ChromeMainDelegateAndroid(); | 24 ChromeMainDelegateAndroid(); |
| 25 ~ChromeMainDelegateAndroid() override; | 25 ~ChromeMainDelegateAndroid() override; |
| 26 | 26 |
| 27 bool BasicStartupComplete(int* exit_code) override; | 27 bool BasicStartupComplete(int* exit_code) override; |
| 28 void SandboxInitialized(const std::string& process_type) override; | 28 void SandboxInitialized(const std::string& process_type) override; |
| 29 int RunProcess( | 29 int RunProcess( |
| 30 const std::string& process_type, | 30 const std::string& process_type, |
| 31 const content::MainFunctionParams& main_function_params) override; | 31 const content::MainFunctionParams& main_function_params) override; |
| 32 void ProcessExiting(const std::string& process_type) override; | 32 void ProcessExiting(const std::string& process_type) override; |
| 33 | 33 |
| 34 #if defined(SAFE_BROWSING_DB_REMOTE) | |
| 35 virtual safe_browsing::SafeBrowsingApiHandler* CreateSafeBrowsingApiHandler(); | |
| 36 #endif | |
| 37 | |
| 38 private: | 34 private: |
| 39 std::unique_ptr<content::BrowserMainRunner> browser_runner_; | 35 std::unique_ptr<content::BrowserMainRunner> browser_runner_; |
| 40 | 36 |
| 41 #if defined(SAFE_BROWSING_DB_REMOTE) | |
| 42 std::unique_ptr<safe_browsing::SafeBrowsingApiHandler> | 37 std::unique_ptr<safe_browsing::SafeBrowsingApiHandler> |
| 43 safe_browsing_api_handler_; | 38 safe_browsing_api_handler_; |
| 44 #endif | |
| 45 | 39 |
| 46 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid); | 40 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid); |
| 47 }; | 41 }; |
| 48 | 42 |
| 49 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ | 43 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ |
| OLD | NEW |