| 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 #include "ppapi/features/features.h" |
| 9 |
| 10 #if !BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 9 #error This file should only be included when ENABLE_PEPPER_CDMS is defined | 11 #error This file should only be included when ENABLE_PEPPER_CDMS is defined |
| 10 #endif | 12 #endif |
| 11 | 13 |
| 12 #include <memory> | 14 #include <memory> |
| 13 #include <string> | 15 #include <string> |
| 14 | 16 |
| 15 #include "base/callback.h" | 17 #include "base/callback.h" |
| 16 #include "base/macros.h" | 18 #include "base/macros.h" |
| 17 | 19 |
| 18 class GURL; | 20 class GURL; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 // Callback used to create a PepperCdmWrapper. This may return null if the | 40 // Callback used to create a PepperCdmWrapper. This may return null if the |
| 39 // Pepper CDM can not be created. | 41 // Pepper CDM can not be created. |
| 40 typedef base::Callback<std::unique_ptr<PepperCdmWrapper>( | 42 typedef base::Callback<std::unique_ptr<PepperCdmWrapper>( |
| 41 const std::string& pluginType, | 43 const std::string& pluginType, |
| 42 const GURL& security_origin)> | 44 const GURL& security_origin)> |
| 43 CreatePepperCdmCB; | 45 CreatePepperCdmCB; |
| 44 | 46 |
| 45 } // namespace content | 47 } // namespace content |
| 46 | 48 |
| 47 #endif // CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ | 49 #endif // CONTENT_RENDERER_MEDIA_CDM_PEPPER_CDM_WRAPPER_H_ |
| OLD | NEW |