| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ | 5 #ifndef CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ |
| 6 #define CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ | 6 #define CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 public: | 29 public: |
| 30 CastMainDelegate(); | 30 CastMainDelegate(); |
| 31 ~CastMainDelegate() override; | 31 ~CastMainDelegate() override; |
| 32 | 32 |
| 33 // content::ContentMainDelegate implementation: | 33 // content::ContentMainDelegate implementation: |
| 34 bool BasicStartupComplete(int* exit_code) override; | 34 bool BasicStartupComplete(int* exit_code) override; |
| 35 void PreSandboxStartup() override; | 35 void PreSandboxStartup() override; |
| 36 int RunProcess( | 36 int RunProcess( |
| 37 const std::string& process_type, | 37 const std::string& process_type, |
| 38 const content::MainFunctionParams& main_function_params) override; | 38 const content::MainFunctionParams& main_function_params) override; |
| 39 void ProcessExiting(const std::string& process_type) override; | |
| 40 #if !defined(OS_ANDROID) | 39 #if !defined(OS_ANDROID) |
| 41 void ZygoteForked() override; | 40 void ZygoteForked() override; |
| 42 #endif // !defined(OS_ANDROID) | 41 #endif // !defined(OS_ANDROID) |
| 43 content::ContentBrowserClient* CreateContentBrowserClient() override; | 42 content::ContentBrowserClient* CreateContentBrowserClient() override; |
| 44 content::ContentRendererClient* CreateContentRendererClient() override; | 43 content::ContentRendererClient* CreateContentRendererClient() override; |
| 45 content::ContentUtilityClient* CreateContentUtilityClient() override; | 44 content::ContentUtilityClient* CreateContentUtilityClient() override; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 void InitializeResourceBundle(); | 47 void InitializeResourceBundle(); |
| 49 | 48 |
| 50 scoped_ptr<CastContentBrowserClient> browser_client_; | 49 scoped_ptr<CastContentBrowserClient> browser_client_; |
| 51 scoped_ptr<CastContentRendererClient> renderer_client_; | 50 scoped_ptr<CastContentRendererClient> renderer_client_; |
| 52 scoped_ptr<CastContentUtilityClient> utility_client_; | 51 scoped_ptr<CastContentUtilityClient> utility_client_; |
| 53 scoped_ptr<CastResourceDelegate> resource_delegate_; | 52 scoped_ptr<CastResourceDelegate> resource_delegate_; |
| 54 CastContentClient content_client_; | 53 CastContentClient content_client_; |
| 55 | 54 |
| 56 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
| 57 scoped_ptr<content::BrowserMainRunner> browser_runner_; | 56 scoped_ptr<content::BrowserMainRunner> browser_runner_; |
| 58 #endif // defined(OS_ANDROID) | 57 #endif // defined(OS_ANDROID) |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace shell | 62 } // namespace shell |
| 64 } // namespace chromecast | 63 } // namespace chromecast |
| 65 | 64 |
| 66 #endif // CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ | 65 #endif // CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ |
| OLD | NEW |