| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROME_MAIN_DELEGATE_H_ | 5 #ifndef CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
| 6 #define CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 6 #define CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Chrome implementation of ContentMainDelegate. | 21 // Chrome implementation of ContentMainDelegate. |
| 22 class ChromeMainDelegate : public content::ContentMainDelegate { | 22 class ChromeMainDelegate : public content::ContentMainDelegate { |
| 23 public: | 23 public: |
| 24 ChromeMainDelegate(); | 24 ChromeMainDelegate(); |
| 25 | 25 |
| 26 // |exe_entry_point_ticks| is the time at which the main function of the | 26 // |exe_entry_point_ticks| is the time at which the main function of the |
| 27 // executable was entered, or null if not available. | 27 // executable was entered, or null if not available. |
| 28 explicit ChromeMainDelegate(base::TimeTicks exe_entry_point_ticks); | 28 explicit ChromeMainDelegate(base::TimeTicks exe_entry_point_ticks); |
| 29 ~ChromeMainDelegate() override; | 29 ~ChromeMainDelegate() override; |
| 30 | 30 |
| 31 using ServiceCatalogFactory = |
| 32 base::RepeatingCallback<std::unique_ptr<base::Value>(void)>; |
| 33 static void InstallServiceCatalogFactory(ServiceCatalogFactory factory); |
| 34 |
| 31 protected: | 35 protected: |
| 32 // content::ContentMainDelegate implementation: | 36 // content::ContentMainDelegate implementation: |
| 33 bool BasicStartupComplete(int* exit_code) override; | 37 bool BasicStartupComplete(int* exit_code) override; |
| 34 void PreSandboxStartup() override; | 38 void PreSandboxStartup() override; |
| 35 void SandboxInitialized(const std::string& process_type) override; | 39 void SandboxInitialized(const std::string& process_type) override; |
| 36 int RunProcess( | 40 int RunProcess( |
| 37 const std::string& process_type, | 41 const std::string& process_type, |
| 38 const content::MainFunctionParams& main_function_params) override; | 42 const content::MainFunctionParams& main_function_params) override; |
| 39 void ProcessExiting(const std::string& process_type) override; | 43 void ProcessExiting(const std::string& process_type) override; |
| 40 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const std::string& process_type); | 76 const std::string& process_type); |
| 73 void SetUpInstallerPreferences(const base::CommandLine& command_line); | 77 void SetUpInstallerPreferences(const base::CommandLine& command_line); |
| 74 #endif // defined(OS_MACOSX) | 78 #endif // defined(OS_MACOSX) |
| 75 | 79 |
| 76 ChromeContentClient chrome_content_client_; | 80 ChromeContentClient chrome_content_client_; |
| 77 | 81 |
| 78 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); | 82 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 85 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
| OLD | NEW |