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

Side by Side Diff: content/renderer/media/cdm/pepper_cdm_wrapper.h

Issue 2411433002: Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Fixes Created 4 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/media/cdm/pepper_cdm_wrapper_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/media/cdm/pepper_cdm_wrapper_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698