| OLD | NEW |
| 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> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "content/public/browser/browser_main_parts.h" | 12 #include "content/public/browser/browser_main_parts.h" |
| 12 #include "content/public/common/main_function_params.h" | 13 #include "content/public/common/main_function_params.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class SingleThreadTaskRunner; | 16 class SingleThreadTaskRunner; |
| 16 } // namespace base | 17 } // namespace base |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 class NetLog; | 20 class NetLog; |
| 20 } | 21 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 void PreMainMessageLoopStart() override; | 50 void PreMainMessageLoopStart() override; |
| 50 void PostMainMessageLoopStart() override; | 51 void PostMainMessageLoopStart() override; |
| 51 void ToolkitInitialized() override; | 52 void ToolkitInitialized() override; |
| 52 int PreCreateThreads() override; | 53 int PreCreateThreads() override; |
| 53 void PreMainMessageLoopRun() override; | 54 void PreMainMessageLoopRun() override; |
| 54 bool MainMessageLoopRun(int* result_code) override; | 55 bool MainMessageLoopRun(int* result_code) override; |
| 55 void PostMainMessageLoopRun() override; | 56 void PostMainMessageLoopRun() override; |
| 56 void PostDestroyThreads() override; | 57 void PostDestroyThreads() override; |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 scoped_ptr<CastBrowserProcess> cast_browser_process_; | 60 std::unique_ptr<CastBrowserProcess> cast_browser_process_; |
| 60 const content::MainFunctionParams parameters_; // For running browser tests. | 61 const content::MainFunctionParams parameters_; // For running browser tests. |
| 61 URLRequestContextFactory* const url_request_context_factory_; | 62 URLRequestContextFactory* const url_request_context_factory_; |
| 62 scoped_ptr<net::NetLog> net_log_; | 63 std::unique_ptr<net::NetLog> net_log_; |
| 63 scoped_ptr<media::VideoPlaneController> video_plane_controller_; | 64 std::unique_ptr<media::VideoPlaneController> video_plane_controller_; |
| 64 | 65 |
| 65 #if !defined(OS_ANDROID) | 66 #if !defined(OS_ANDROID) |
| 66 // Tracks usage of media resource by e.g. CMA pipeline, CDM. | 67 // Tracks usage of media resource by e.g. CMA pipeline, CDM. |
| 67 media::MediaResourceTracker* media_resource_tracker_; | 68 media::MediaResourceTracker* media_resource_tracker_; |
| 68 | 69 |
| 69 // Tracks all media pipeline backends. | 70 // Tracks all media pipeline backends. |
| 70 scoped_ptr<media::MediaPipelineBackendManager> | 71 std::unique_ptr<media::MediaPipelineBackendManager> |
| 71 media_pipeline_backend_manager_; | 72 media_pipeline_backend_manager_; |
| 72 #endif | 73 #endif |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); | 75 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace shell | 78 } // namespace shell |
| 78 } // namespace chromecast | 79 } // namespace chromecast |
| 79 | 80 |
| 80 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ | 81 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |