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

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

Issue 1385333002: [Chromecast] Cleanup the API for creating MediaPipelineBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_main_parts.h" 10 #include "content/public/browser/browser_main_parts.h"
12 #include "content/public/common/main_function_params.h" 11 #include "content/public/common/main_function_params.h"
13 12
14 namespace media {
15 class AudioManagerFactory;
16 }
17
18 namespace net { 13 namespace net {
19 class NetLog; 14 class NetLog;
20 } 15 }
21 16
22 namespace chromecast { 17 namespace chromecast {
23 namespace shell { 18 namespace shell {
24 class CastBrowserProcess; 19 class CastBrowserProcess;
25 class URLRequestContextFactory; 20 class URLRequestContextFactory;
26 21
27 class CastBrowserMainParts : public content::BrowserMainParts { 22 class CastBrowserMainParts : public content::BrowserMainParts {
28 public: 23 public:
29 // This class does not take ownership of |url_request_content_factory|. 24 // This class does not take ownership of |url_request_content_factory|.
30 CastBrowserMainParts( 25 CastBrowserMainParts(const content::MainFunctionParams& parameters,
31 const content::MainFunctionParams& parameters, 26 URLRequestContextFactory* url_request_context_factory);
32 URLRequestContextFactory* url_request_context_factory,
33 scoped_ptr<::media::AudioManagerFactory> audio_manager_factory);
34 ~CastBrowserMainParts() override; 27 ~CastBrowserMainParts() override;
35 28
36 // content::BrowserMainParts implementation: 29 // content::BrowserMainParts implementation:
37 void PreMainMessageLoopStart() override; 30 void PreMainMessageLoopStart() override;
38 void PostMainMessageLoopStart() override; 31 void PostMainMessageLoopStart() override;
39 int PreCreateThreads() override; 32 int PreCreateThreads() override;
40 void PreMainMessageLoopRun() override; 33 void PreMainMessageLoopRun() override;
41 bool MainMessageLoopRun(int* result_code) override; 34 bool MainMessageLoopRun(int* result_code) override;
42 void PostMainMessageLoopRun() override; 35 void PostMainMessageLoopRun() override;
43 36
44 private: 37 private:
45 scoped_ptr<CastBrowserProcess> cast_browser_process_; 38 scoped_ptr<CastBrowserProcess> cast_browser_process_;
46 const content::MainFunctionParams parameters_; // For running browser tests. 39 const content::MainFunctionParams parameters_; // For running browser tests.
47 URLRequestContextFactory* const url_request_context_factory_; 40 URLRequestContextFactory* const url_request_context_factory_;
48 scoped_ptr<::media::AudioManagerFactory> audio_manager_factory_;
49 scoped_ptr<net::NetLog> net_log_; 41 scoped_ptr<net::NetLog> net_log_;
50 42
51 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts); 43 DISALLOW_COPY_AND_ASSIGN(CastBrowserMainParts);
52 }; 44 };
53 45
54 } // namespace shell 46 } // namespace shell
55 } // namespace chromecast 47 } // namespace chromecast
56 48
57 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_ 49 #endif // CHROMECAST_BROWSER_CAST_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698