Delete unused downloads page asset.
[chromium-blink-merge.git] / chromecast / app / cast_main_delegate.h
bloba6fd0032313cbc374c54933af3de750cc14853a0
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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_APP_CAST_MAIN_DELEGATE_H_
6 #define CHROMECAST_APP_CAST_MAIN_DELEGATE_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chromecast/common/cast_content_client.h"
11 #include "content/public/app/content_main_delegate.h"
13 namespace content {
14 class BrowserMainRunner;
15 } // namespace content
17 namespace chromecast {
19 class CastResourceDelegate;
21 namespace shell {
23 class CastContentBrowserClient;
24 class CastContentRendererClient;
26 class CastMainDelegate : public content::ContentMainDelegate {
27 public:
28 CastMainDelegate();
29 ~CastMainDelegate() override;
31 // content::ContentMainDelegate implementation:
32 bool BasicStartupComplete(int* exit_code) override;
33 void PreSandboxStartup() override;
34 int RunProcess(
35 const std::string& process_type,
36 const content::MainFunctionParams& main_function_params) override;
37 void ProcessExiting(const std::string& process_type) override;
38 #if !defined(OS_ANDROID)
39 void ZygoteForked() override;
40 #endif // !defined(OS_ANDROID)
41 content::ContentBrowserClient* CreateContentBrowserClient() override;
42 content::ContentRendererClient* CreateContentRendererClient() override;
44 private:
45 void InitializeResourceBundle();
47 scoped_ptr<CastContentBrowserClient> browser_client_;
48 scoped_ptr<CastContentRendererClient> renderer_client_;
49 scoped_ptr<CastResourceDelegate> resource_delegate_;
50 CastContentClient content_client_;
52 #if defined(OS_ANDROID)
53 scoped_ptr<content::BrowserMainRunner> browser_runner_;
54 #endif // defined(OS_ANDROID)
56 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate);
59 } // namespace shell
60 } // namespace chromecast
62 #endif // CHROMECAST_APP_CAST_MAIN_DELEGATE_H_