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

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

Issue 1153173006: Chromecast: use CastContent{Browser,Renderer}Client as a base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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 | « no previous file | chromecast/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_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 "chromecast/common/cast_content_client.h" 10 #include "chromecast/common/cast_content_client.h"
(...skipping 25 matching lines...) Expand all
36 const content::MainFunctionParams& main_function_params) override; 36 const content::MainFunctionParams& main_function_params) override;
37 #if !defined(OS_ANDROID) 37 #if !defined(OS_ANDROID)
38 void ZygoteForked() override; 38 void ZygoteForked() override;
39 #endif // !defined(OS_ANDROID) 39 #endif // !defined(OS_ANDROID)
40 content::ContentBrowserClient* CreateContentBrowserClient() override; 40 content::ContentBrowserClient* CreateContentBrowserClient() override;
41 content::ContentRendererClient* CreateContentRendererClient() override; 41 content::ContentRendererClient* CreateContentRendererClient() override;
42 42
43 private: 43 private:
44 void InitializeResourceBundle(); 44 void InitializeResourceBundle();
45 45
46 CastContentBrowserClient* PlatformCreateCastBrowserClient();
47 CastContentRendererClient* PlatformCreateCastRendererClient();
byungchul 2015/06/05 20:46:29 Not necessary
gunsch 2015/06/05 21:01:40 Done.
48
46 scoped_ptr<CastContentBrowserClient> browser_client_; 49 scoped_ptr<CastContentBrowserClient> browser_client_;
47 scoped_ptr<CastContentRendererClient> renderer_client_; 50 scoped_ptr<CastContentRendererClient> renderer_client_;
48 scoped_ptr<CastResourceDelegate> resource_delegate_; 51 scoped_ptr<CastResourceDelegate> resource_delegate_;
49 CastContentClient content_client_; 52 CastContentClient content_client_;
50 53
51 #if defined(OS_ANDROID) 54 #if defined(OS_ANDROID)
52 scoped_ptr<content::BrowserMainRunner> browser_runner_; 55 scoped_ptr<content::BrowserMainRunner> browser_runner_;
53 #endif // defined(OS_ANDROID) 56 #endif // defined(OS_ANDROID)
54 57
55 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate); 58 DISALLOW_COPY_AND_ASSIGN(CastMainDelegate);
56 }; 59 };
57 60
58 } // namespace shell 61 } // namespace shell
59 } // namespace chromecast 62 } // namespace chromecast
60 63
61 #endif // CHROMECAST_APP_CAST_MAIN_DELEGATE_H_ 64 #endif // CHROMECAST_APP_CAST_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/app/cast_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698