OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_ | |
6 #define CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "chromecast/shell/common/cast_content_client.h" | |
11 #include "content/public/app/content_main_delegate.h" | |
12 | |
13 namespace chromecast { | |
14 namespace shell { | |
15 | |
16 class CastContentBrowserClient; | |
17 class CastContentRendererClient; | |
18 | |
19 class CastMainDelegate : public content::ContentMainDelegate { | |
20 public: | |
21 CastMainDelegate(); | |
22 virtual ~CastMainDelegate(); | |
23 | |
24 // content::ContentMainDelegate implementation: | |
25 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; | |
26 virtual void PreSandboxStartup() OVERRIDE; | |
27 virtual void ZygoteForked() OVERRIDE; | |
28 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | |
29 virtual content::ContentRendererClient* | |
30 CreateContentRendererClient() OVERRIDE; | |
31 | |
32 private: | |
33 static void InitializeResourceBundle(); | |
tfarina
2014/07/22 20:11:50
Was this copied from content/shell/app/shell_main_
| |
34 | |
35 scoped_ptr<CastContentBrowserClient> browser_client_; | |
36 scoped_ptr<CastContentRendererClient> renderer_client_; | |
37 CastContentClient content_client_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate); | |
40 }; | |
41 | |
42 } // namespace shell | |
43 } // namespace chromecast | |
44 | |
45 #endif // CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_ | |
OLD | NEW |