Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Side by Side Diff: chromecast/shell/app/cast_main_delegate.h

Issue 467043002: Adds locale strings to Chromecast build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/common/cast_resource_delegate.cc ('k') | chromecast/shell/app/cast_main_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SHELL_APP_CAST_MAIN_DELEGATE_H_ 5 #ifndef CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_
6 #define CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_ 6 #define CHROMECAST_SHELL_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 "chromecast/shell/common/cast_content_client.h" 10 #include "chromecast/shell/common/cast_content_client.h"
11 #include "content/public/app/content_main_delegate.h" 11 #include "content/public/app/content_main_delegate.h"
12 12
13 namespace chromecast { 13 namespace chromecast {
14
15 class CastResourceDelegate;
16
14 namespace shell { 17 namespace shell {
15 18
16 class CastContentBrowserClient; 19 class CastContentBrowserClient;
17 class CastContentRendererClient; 20 class CastContentRendererClient;
18 21
19 class CastMainDelegate : public content::ContentMainDelegate { 22 class CastMainDelegate : public content::ContentMainDelegate {
20 public: 23 public:
21 CastMainDelegate(); 24 CastMainDelegate();
22 virtual ~CastMainDelegate(); 25 virtual ~CastMainDelegate();
23 26
24 // content::ContentMainDelegate implementation: 27 // content::ContentMainDelegate implementation:
25 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 28 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
26 virtual void PreSandboxStartup() OVERRIDE; 29 virtual void PreSandboxStartup() OVERRIDE;
27 virtual void ZygoteForked() OVERRIDE; 30 virtual void ZygoteForked() OVERRIDE;
28 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 31 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
29 virtual content::ContentRendererClient* 32 virtual content::ContentRendererClient*
30 CreateContentRendererClient() OVERRIDE; 33 CreateContentRendererClient() OVERRIDE;
31 34
32 private: 35 private:
33 static void InitializeResourceBundle(); 36 void InitializeResourceBundle();
34 37
35 scoped_ptr<CastContentBrowserClient> browser_client_; 38 scoped_ptr<CastContentBrowserClient> browser_client_;
36 scoped_ptr<CastContentRendererClient> renderer_client_; 39 scoped_ptr<CastContentRendererClient> renderer_client_;
40 scoped_ptr<CastResourceDelegate> resource_delegate_;
37 CastContentClient content_client_; 41 CastContentClient content_client_;
38 42
39 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate); 43 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate);
40 }; 44 };
41 45
42 } // namespace shell 46 } // namespace shell
43 } // namespace chromecast 47 } // namespace chromecast
44 48
45 #endif // CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_ 49 #endif // CHROMECAST_SHELL_APP_CAST_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromecast/common/cast_resource_delegate.cc ('k') | chromecast/shell/app/cast_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698