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 CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
6 #define CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ | 6 #define CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class ShellMainDelegate : public content::ContentMainDelegate { | 21 class ShellMainDelegate : public content::ContentMainDelegate { |
22 public: | 22 public: |
23 ShellMainDelegate(); | 23 ShellMainDelegate(); |
24 virtual ~ShellMainDelegate(); | 24 virtual ~ShellMainDelegate(); |
25 | 25 |
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; | 26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; |
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 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) |
34 virtual bool ProcessRegistersWithSystemProcess( | 34 virtual bool ProcessRegistersWithSystemProcess( |
35 const std::string& process_type) OVERRIDE; | 35 const std::string& process_type) OVERRIDE; |
36 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE; | 36 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE; |
37 virtual bool DelaySandboxInitialization( | 37 virtual bool DelaySandboxInitialization( |
38 const std::string& process_type) OVERRIDE; | 38 const std::string& process_type) OVERRIDE; |
39 #elif defined(OS_POSIX) | 39 #elif defined(OS_POSIX) |
40 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE; | 40 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE; |
41 virtual void ZygoteForked() OVERRIDE; | 41 virtual void ZygoteForked() OVERRIDE; |
42 #endif // OS_MACOSX | 42 #endif // OS_MACOSX |
43 | 43 |
44 private: | 44 private: |
45 void InitializeShellContentClient(const std::string& process_type); | 45 void InitializeShellContentClient(const std::string& process_type); |
46 | 46 |
47 scoped_ptr<content::ShellContentBrowserClient> browser_client_; | 47 scoped_ptr<content::ShellContentBrowserClient> browser_client_; |
48 scoped_ptr<content::ShellContentRendererClient> renderer_client_; | 48 scoped_ptr<content::ShellContentRendererClient> renderer_client_; |
49 scoped_ptr<content::ShellContentPluginClient> plugin_client_; | 49 scoped_ptr<content::ShellContentPluginClient> plugin_client_; |
50 scoped_ptr<content::ShellContentUtilityClient> utility_client_; | 50 scoped_ptr<content::ShellContentUtilityClient> utility_client_; |
51 content::ShellContentClient content_client_; | 51 content::ShellContentClient content_client_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); |
54 }; | 54 }; |
55 | 55 |
56 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ | 56 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
OLD | NEW |