| 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 #include "content/browser/media/android/browser_cdm_manager.h" | 5 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "content/common/media/cdm_messages.h" | 9 #include "content/common/media/cdm_messages.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 11 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 13 #include "content/public/browser/render_view_host.h" | 13 #include "content/public/browser/render_view_host.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 DLOG(WARNING) << "No CDM for ID: " << cdm_id << " found"; | 285 DLOG(WARNING) << "No CDM for ID: " << cdm_id << " found"; |
| 286 OnSessionError(cdm_id, session_id, MediaKeys::kUnknownError, 0); | 286 OnSessionError(cdm_id, session_id, MediaKeys::kUnknownError, 0); |
| 287 return; | 287 return; |
| 288 } | 288 } |
| 289 | 289 |
| 290 // This could fail, in which case a SessionError will be fired. | 290 // This could fail, in which case a SessionError will be fired. |
| 291 cdm->CreateSession(session_id, content_type, &init_data[0], init_data.size()); | 291 cdm->CreateSession(session_id, content_type, &init_data[0], init_data.size()); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace content | 294 } // namespace content |
| OLD | NEW |