| 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 <stdint.h> |
| 9 |
| 8 #include <memory> | 10 #include <memory> |
| 9 | 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 12 #include "chrome/common/chrome_content_client.h" | 14 #include "chrome/common/chrome_content_client.h" |
| 13 #include "content/public/app/content_main_delegate.h" | 15 #include "content/public/app/content_main_delegate.h" |
| 14 | 16 |
| 15 template <typename> | 17 template <typename> |
| 16 class ScopedVector; | 18 class ScopedVector; |
| 17 | 19 |
| 18 namespace base { | 20 namespace base { |
| 19 class CommandLine; | 21 class CommandLine; |
| 20 } | 22 } |
| 21 | 23 |
| 22 // Chrome implementation of ContentMainDelegate. | 24 // Chrome implementation of ContentMainDelegate. |
| 23 class ChromeMainDelegate : public content::ContentMainDelegate { | 25 class ChromeMainDelegate : public content::ContentMainDelegate { |
| 24 public: | 26 public: |
| 25 ChromeMainDelegate(); | 27 explicit ChromeMainDelegate(int64_t exe_entry_point_ticks); |
| 26 ~ChromeMainDelegate() override; | 28 ~ChromeMainDelegate() override; |
| 27 | 29 |
| 28 protected: | 30 protected: |
| 29 // content::ContentMainDelegate implementation: | 31 // content::ContentMainDelegate implementation: |
| 30 bool BasicStartupComplete(int* exit_code) override; | 32 bool BasicStartupComplete(int* exit_code) override; |
| 31 void PreSandboxStartup() override; | 33 void PreSandboxStartup() override; |
| 32 void SandboxInitialized(const std::string& process_type) override; | 34 void SandboxInitialized(const std::string& process_type) override; |
| 33 int RunProcess( | 35 int RunProcess( |
| 34 const std::string& process_type, | 36 const std::string& process_type, |
| 35 const content::MainFunctionParams& main_function_params) override; | 37 const content::MainFunctionParams& main_function_params) override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 56 const std::string& process_type); | 58 const std::string& process_type); |
| 57 void SetUpInstallerPreferences(const base::CommandLine& command_line); | 59 void SetUpInstallerPreferences(const base::CommandLine& command_line); |
| 58 #endif // defined(OS_MACOSX) | 60 #endif // defined(OS_MACOSX) |
| 59 | 61 |
| 60 ChromeContentClient chrome_content_client_; | 62 ChromeContentClient chrome_content_client_; |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 67 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
| OLD | NEW |