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

Side by Side Diff: chromecast/browser/cast_content_browser_client.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
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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line); 54 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line);
55 55
56 // Creates and returns the CastService instance for the current process. 56 // Creates and returns the CastService instance for the current process.
57 // Note: |request_context_getter| might be different than the main request 57 // Note: |request_context_getter| might be different than the main request
58 // getter accessible via CastBrowserProcess. 58 // getter accessible via CastBrowserProcess.
59 virtual scoped_ptr<CastService> CreateCastService( 59 virtual scoped_ptr<CastService> CreateCastService(
60 content::BrowserContext* browser_context, 60 content::BrowserContext* browser_context,
61 PrefService* pref_service, 61 PrefService* pref_service,
62 net::URLRequestContextGetter* request_context_getter); 62 net::URLRequestContextGetter* request_context_getter);
63 63
64 // Provide an AudioManagerFactory instance for WebAudio playback. 64 #if !defined(OS_ANDROID)
65 virtual scoped_ptr<::media::AudioManagerFactory> CreateAudioManagerFactory(); 65 virtual scoped_ptr<::media::AudioManagerFactory> CreateAudioManagerFactory();
66 66
67 #if !defined(OS_ANDROID)
68 // Creates a CmaMediaPipelineClient which is responsible to create (CMA 67 // Creates a CmaMediaPipelineClient which is responsible to create (CMA
69 // backend) 68 // backend)
70 // for media playback and watch media pipeline status, called once per media 69 // for media playback and watch media pipeline status, called once per media
71 // player 70 // player
72 // instance. 71 // instance.
73 virtual scoped_refptr<media::CmaMediaPipelineClient> 72 virtual scoped_refptr<media::CmaMediaPipelineClient>
74 CreateCmaMediaPipelineClient(); 73 CreateCmaMediaPipelineClient();
75 74
76 // Creates and returns a factory used for creating BrowserCdm instances for 75 // Creates and returns a factory used for creating BrowserCdm instances for
77 // playing protected content. This is called once per browser lifetime. 76 // playing protected content. This is called once per browser lifetime.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 190
192 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 191 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
193 192
194 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 193 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
195 }; 194 };
196 195
197 } // namespace shell 196 } // namespace shell
198 } // namespace chromecast 197 } // namespace chromecast
199 198
200 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 199 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698