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

Side by Side Diff: chrome/app/chrome_main_delegate.h

Issue 2345933002: Break chrome_initial's dependence on //components/startup_metric_utils/browser:lib (Closed)
Patch Set: ticks everywhere Created 4 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) 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 // |exe_entry_point_ticks| is the time at which the main function of the
29 // executable was entered, or 0 if not available.
30 explicit ChromeMainDelegate(int64_t exe_entry_point_ticks);
fdoray 2016/09/20 12:25:22 I understand why it's more conservative to use int
grt (UTC plus 2) 2016/09/20 19:20:26 I like it. Done.
26 ~ChromeMainDelegate() override; 31 ~ChromeMainDelegate() override;
27 32
28 protected: 33 protected:
29 // content::ContentMainDelegate implementation: 34 // content::ContentMainDelegate implementation:
30 bool BasicStartupComplete(int* exit_code) override; 35 bool BasicStartupComplete(int* exit_code) override;
31 void PreSandboxStartup() override; 36 void PreSandboxStartup() override;
32 void SandboxInitialized(const std::string& process_type) override; 37 void SandboxInitialized(const std::string& process_type) override;
33 int RunProcess( 38 int RunProcess(
34 const std::string& process_type, 39 const std::string& process_type,
35 const content::MainFunctionParams& main_function_params) override; 40 const content::MainFunctionParams& main_function_params) override;
(...skipping 20 matching lines...) Expand all
56 const std::string& process_type); 61 const std::string& process_type);
57 void SetUpInstallerPreferences(const base::CommandLine& command_line); 62 void SetUpInstallerPreferences(const base::CommandLine& command_line);
58 #endif // defined(OS_MACOSX) 63 #endif // defined(OS_MACOSX)
59 64
60 ChromeContentClient chrome_content_client_; 65 ChromeContentClient chrome_content_client_;
61 66
62 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); 67 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate);
63 }; 68 };
64 69
65 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ 70 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698