Chromium Code Reviews| 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 ChromeMainDelegate(); |
| 28 explicit ChromeMainDelegate(int64_t exe_entry_point_ticks); | |
|
fdoray
2016/09/19 17:03:28
// |exe_main_entry_time| is the time at which the
grt (UTC plus 2)
2016/09/19 19:52:46
Done.
| |
| 26 ~ChromeMainDelegate() override; | 29 ~ChromeMainDelegate() override; |
| 27 | 30 |
| 28 protected: | 31 protected: |
| 29 // content::ContentMainDelegate implementation: | 32 // content::ContentMainDelegate implementation: |
| 30 bool BasicStartupComplete(int* exit_code) override; | 33 bool BasicStartupComplete(int* exit_code) override; |
| 31 void PreSandboxStartup() override; | 34 void PreSandboxStartup() override; |
| 32 void SandboxInitialized(const std::string& process_type) override; | 35 void SandboxInitialized(const std::string& process_type) override; |
| 33 int RunProcess( | 36 int RunProcess( |
| 34 const std::string& process_type, | 37 const std::string& process_type, |
| 35 const content::MainFunctionParams& main_function_params) override; | 38 const content::MainFunctionParams& main_function_params) override; |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 56 const std::string& process_type); | 59 const std::string& process_type); |
| 57 void SetUpInstallerPreferences(const base::CommandLine& command_line); | 60 void SetUpInstallerPreferences(const base::CommandLine& command_line); |
| 58 #endif // defined(OS_MACOSX) | 61 #endif // defined(OS_MACOSX) |
| 59 | 62 |
| 60 ChromeContentClient chrome_content_client_; | 63 ChromeContentClient chrome_content_client_; |
| 61 | 64 |
| 62 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); | 65 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 68 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
| OLD | NEW |