| 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_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #if !defined(OS_ANDROID) | 64 #if !defined(OS_ANDROID) |
| 65 virtual scoped_ptr<::media::AudioManagerFactory> CreateAudioManagerFactory(); | 65 virtual scoped_ptr<::media::AudioManagerFactory> CreateAudioManagerFactory(); |
| 66 | 66 |
| 67 // Creates a CmaMediaPipelineClient which is responsible to create (CMA | 67 // Creates a CmaMediaPipelineClient which is responsible to create (CMA |
| 68 // backend) | 68 // backend) |
| 69 // 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 |
| 70 // player | 70 // player |
| 71 // instance. | 71 // instance. |
| 72 virtual scoped_refptr<media::CmaMediaPipelineClient> | 72 virtual scoped_refptr<media::CmaMediaPipelineClient> |
| 73 CreateCmaMediaPipelineClient(); | 73 CreateCmaMediaPipelineClient(); |
| 74 | |
| 75 // Creates and returns a factory used for creating BrowserCdm instances for | |
| 76 // playing protected content. This is called once per browser lifetime. | |
| 77 virtual scoped_ptr<::media::BrowserCdmFactory> CreateBrowserCdmFactory(); | |
| 78 #endif | 74 #endif |
| 79 | 75 |
| 80 // Performs cleanup for process exit (but before AtExitManager cleanup). | 76 // Performs cleanup for process exit (but before AtExitManager cleanup). |
| 81 void ProcessExiting(); | 77 void ProcessExiting(); |
| 82 | 78 |
| 83 // Invoked when the metrics client ID changes. | 79 // Invoked when the metrics client ID changes. |
| 84 virtual void SetMetricsClientId(const std::string& client_id); | 80 virtual void SetMetricsClientId(const std::string& client_id); |
| 85 | 81 |
| 86 // Allows registration of extra metrics providers. | 82 // Allows registration of extra metrics providers. |
| 87 virtual void RegisterMetricsProviders( | 83 virtual void RegisterMetricsProviders( |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 bool* no_javascript_access) override; | 139 bool* no_javascript_access) override; |
| 144 void RegisterUnsandboxedOutOfProcessMojoApplications( | 140 void RegisterUnsandboxedOutOfProcessMojoApplications( |
| 145 std::map<GURL, base::string16>* apps) override; | 141 std::map<GURL, base::string16>* apps) override; |
| 146 #if defined(OS_ANDROID) | 142 #if defined(OS_ANDROID) |
| 147 void GetAdditionalMappedFilesForChildProcess( | 143 void GetAdditionalMappedFilesForChildProcess( |
| 148 const base::CommandLine& command_line, | 144 const base::CommandLine& command_line, |
| 149 int child_process_id, | 145 int child_process_id, |
| 150 content::FileDescriptorInfo* mappings, | 146 content::FileDescriptorInfo* mappings, |
| 151 std::map<int, base::MemoryMappedFile::Region>* regions) override; | 147 std::map<int, base::MemoryMappedFile::Region>* regions) override; |
| 152 #else | 148 #else |
| 149 scoped_ptr<::media::CdmFactory> CreateCdmFactory() override; |
| 153 void GetAdditionalMappedFilesForChildProcess( | 150 void GetAdditionalMappedFilesForChildProcess( |
| 154 const base::CommandLine& command_line, | 151 const base::CommandLine& command_line, |
| 155 int child_process_id, | 152 int child_process_id, |
| 156 content::FileDescriptorInfo* mappings) override; | 153 content::FileDescriptorInfo* mappings) override; |
| 157 #endif // defined(OS_ANDROID) | 154 #endif // defined(OS_ANDROID) |
| 158 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) | 155 #if defined(OS_ANDROID) && defined(VIDEO_HOLE) |
| 159 content::ExternalVideoSurfaceContainer* | 156 content::ExternalVideoSurfaceContainer* |
| 160 OverrideCreateExternalVideoSurfaceContainer( | 157 OverrideCreateExternalVideoSurfaceContainer( |
| 161 content::WebContents* web_contents) override; | 158 content::WebContents* web_contents) override; |
| 162 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) | 159 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 190 | 187 |
| 191 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 188 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 192 | 189 |
| 193 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 190 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 194 }; | 191 }; |
| 195 | 192 |
| 196 } // namespace shell | 193 } // namespace shell |
| 197 } // namespace chromecast | 194 } // namespace chromecast |
| 198 | 195 |
| 199 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 196 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |