OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/app/content_main_delegate.h" |
| 12 #include "content/shell/shell_content_client.h" |
| 13 |
| 14 namespace content { |
| 15 class ShellContentBrowserClient; |
| 16 class ShellContentRendererClient; |
| 17 class ShellContentPluginClient; |
| 18 class ShellContentUtilityClient; |
| 19 } // namespace content |
| 20 |
| 21 class ShellMainDelegate : public content::ContentMainDelegate { |
| 22 public: |
| 23 ShellMainDelegate(); |
| 24 virtual ~ShellMainDelegate(); |
| 25 |
| 26 virtual void PreSandboxStartup() OVERRIDE; |
| 27 |
| 28 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 29 virtual void ZygoteForked() OVERRIDE; |
| 30 #endif |
| 31 |
| 32 private: |
| 33 void InitializeShellContentClient(const std::string& process_type); |
| 34 |
| 35 scoped_ptr<content::ShellContentBrowserClient> browser_client_; |
| 36 scoped_ptr<content::ShellContentRendererClient> renderer_client_; |
| 37 scoped_ptr<content::ShellContentPluginClient> plugin_client_; |
| 38 scoped_ptr<content::ShellContentUtilityClient> utility_client_; |
| 39 content::ShellContentClient content_client_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); |
| 42 }; |
| 43 |
| 44 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ |
OLD | NEW |