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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
23 void InitMacCrashReporter(const CommandLine& command_line, | 23 void InitMacCrashReporter(const CommandLine& command_line, |
24 const std::string& process_type); | 24 const std::string& process_type); |
25 #endif // defined(OS_MACOSX) | 25 #endif // defined(OS_MACOSX) |
26 | 26 |
27 virtual void PreSandboxStartup() OVERRIDE; | 27 virtual void PreSandboxStartup() OVERRIDE; |
28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; | 28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; |
29 virtual int RunProcess( | 29 virtual int RunProcess( |
30 const std::string& process_type, | 30 const std::string& process_type, |
31 const MainFunctionParams& main_function_params) OVERRIDE; | 31 const content::MainFunctionParams& main_function_params) OVERRIDE; |
32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; | 32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; |
33 | 33 |
34 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
35 virtual bool ProcessRegistersWithSystemProcess( | 35 virtual bool ProcessRegistersWithSystemProcess( |
36 const std::string& process_type) OVERRIDE; | 36 const std::string& process_type) OVERRIDE; |
37 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE; | 37 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE; |
38 virtual bool DelaySandboxInitialization( | 38 virtual bool DelaySandboxInitialization( |
39 const std::string& process_type) OVERRIDE; | 39 const std::string& process_type) OVERRIDE; |
40 #elif defined(OS_POSIX) | 40 #elif defined(OS_POSIX) |
41 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE; | 41 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE; |
42 virtual void ZygoteForked() OVERRIDE; | 42 virtual void ZygoteForked() OVERRIDE; |
43 #endif | 43 #endif |
44 | 44 |
45 private: | 45 private: |
46 chrome::ChromeContentClient chrome_content_client_; | 46 chrome::ChromeContentClient chrome_content_client_; |
47 scoped_ptr<base::StatsScope<base::StatsCounterTimer> > startup_timer_; | 47 scoped_ptr<base::StatsScope<base::StatsCounterTimer> > startup_timer_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); | 49 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegate); |
50 }; | 50 }; |
51 | 51 |
52 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ | 52 #endif // CHROME_APP_CHROME_MAIN_DELEGATE_H_ |
OLD | NEW |