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

Side by Side Diff: chromecast/browser/cast_browser_main_parts.h

Issue 2836263003: Reland "[Chromecast] Use base::FeatureList to control features." (Closed)
Patch Set: Bad includes removed Created 3 years, 7 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/browser/BUILD.gn ('k') | chromecast/browser/cast_browser_main_parts.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_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_
6 #define CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ 6 #define CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/metrics/field_trial.h"
12 #include "build/buildflag.h" 13 #include "build/buildflag.h"
13 #include "chromecast/chromecast_features.h" 14 #include "chromecast/chromecast_features.h"
14 #include "content/public/browser/browser_main_parts.h" 15 #include "content/public/browser/browser_main_parts.h"
15 #include "content/public/common/main_function_params.h" 16 #include "content/public/common/main_function_params.h"
16 17
17 namespace base { 18 namespace base {
18 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
19 class Thread; 20 class Thread;
20 } // namespace base 21 } // namespace base
21 22
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void PostMainMessageLoopStart() override; 59 void PostMainMessageLoopStart() override;
59 void ToolkitInitialized() override; 60 void ToolkitInitialized() override;
60 int PreCreateThreads() override; 61 int PreCreateThreads() override;
61 void PreMainMessageLoopRun() override; 62 void PreMainMessageLoopRun() override;
62 bool MainMessageLoopRun(int* result_code) override; 63 bool MainMessageLoopRun(int* result_code) override;
63 void PostMainMessageLoopRun() override; 64 void PostMainMessageLoopRun() override;
64 void PostDestroyThreads() override; 65 void PostDestroyThreads() override;
65 66
66 private: 67 private:
67 std::unique_ptr<CastBrowserProcess> cast_browser_process_; 68 std::unique_ptr<CastBrowserProcess> cast_browser_process_;
69 base::FieldTrialList field_trial_list_;
68 const content::MainFunctionParams parameters_; // For running browser tests. 70 const content::MainFunctionParams parameters_; // For running browser tests.
69 URLRequestContextFactory* const url_request_context_factory_; 71 URLRequestContextFactory* const url_request_context_factory_;
70 std::unique_ptr<net::NetLog> net_log_; 72 std::unique_ptr<net::NetLog> net_log_;
71 std::unique_ptr<media::VideoPlaneController> video_plane_controller_; 73 std::unique_ptr<media::VideoPlaneController> video_plane_controller_;
72 std::unique_ptr<media::MediaCapsImpl> media_caps_; 74 std::unique_ptr<media::MediaCapsImpl> media_caps_;
73 std::unique_ptr<CastWindowManager> window_manager_; 75 std::unique_ptr<CastWindowManager> window_manager_;
74 76
75 #if BUILDFLAG(IS_CAST_USING_CMA_BACKEND) 77 #if BUILDFLAG(IS_CAST_USING_CMA_BACKEND)
76 // CMA thread used by AudioManager, MojoRenderer, and MediaPipelineBackend. 78 // CMA thread used by AudioManager, MojoRenderer, and MediaPipelineBackend.
77 std::unique_ptr<base::Thread> media_thread_; 79 std::unique_ptr<base::Thread> media_thread_;
78 80
79 // Tracks usage of media resource by e.g. CMA pipeline, CDM. 81 // Tracks usage of media resource by e.g. CMA pipeline, CDM.
80 media::MediaResourceTracker* media_resource_tracker_; 82 media::MediaResourceTracker* media_resource_tracker_;
81 83
82 // Tracks all media pipeline backends. 84 // Tracks all media pipeline backends.
83 std::unique_ptr<media::MediaPipelineBackendManager> 85 std::unique_ptr<media::MediaPipelineBackendManager>
84 media_pipeline_backend_manager_; 86 media_pipeline_backend_manager_;
85 87
86 std::unique_ptr<CastMemoryPressureMonitor> memory_pressure_monitor_; 88 std::unique_ptr<CastMemoryPressureMonitor> memory_pressure_monitor_;
87 #endif 89 #endif
88 90
89 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); 91 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts);
90 }; 92 };
91 93
92 } // namespace shell 94 } // namespace shell
93 } // namespace chromecast 95 } // namespace chromecast
94 96
95 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ 97 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698