| 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 CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ | 6 #define CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ |
| 7 | 7 |
| 8 #if !defined(ENABLE_PEPPER_CDMS) | 8 #if !defined(ENABLE_PEPPER_CDMS) |
| 9 #error This file should only be included when ENABLE_PEPPER_CDMS is defined | 9 #error This file should only be included when ENABLE_PEPPER_CDMS is defined |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" |
| 16 | 17 |
| 17 class GURL; | 18 class GURL; |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 20 class ContentDecryptorDelegate; | 21 class ContentDecryptorDelegate; |
| 21 | 22 |
| 22 // PepperCdmWrapper provides access to the Pepper CDM instance. | 23 // PepperCdmWrapper provides access to the Pepper CDM instance. |
| 23 class PepperCdmWrapper { | 24 class PepperCdmWrapper { |
| 24 public: | 25 public: |
| 25 virtual ~PepperCdmWrapper() {} | 26 virtual ~PepperCdmWrapper() {} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 36 | 37 |
| 37 // Callback used to create a PepperCdmWrapper. This may return null if the | 38 // Callback used to create a PepperCdmWrapper. This may return null if the |
| 38 // Pepper CDM can not be created. | 39 // Pepper CDM can not be created. |
| 39 typedef base::Callback<scoped_ptr<PepperCdmWrapper>( | 40 typedef base::Callback<scoped_ptr<PepperCdmWrapper>( |
| 40 const std::string& pluginType, | 41 const std::string& pluginType, |
| 41 const GURL& security_origin)> CreatePepperCdmCB; | 42 const GURL& security_origin)> CreatePepperCdmCB; |
| 42 | 43 |
| 43 } // namespace content | 44 } // namespace content |
| 44 | 45 |
| 45 #endif // CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ | 46 #endif // CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ |
| OLD | NEW |