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

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

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