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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 2409423002: Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Fix and format 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 | « chrome/common/BUILD.gn ('k') | chrome/common/chrome_paths.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 #include "components/dom_distiller/core/url_constants.h" 36 #include "components/dom_distiller/core/url_constants.h"
37 #include "components/version_info/version_info.h" 37 #include "components/version_info/version_info.h"
38 #include "content/public/common/cdm_info.h" 38 #include "content/public/common/cdm_info.h"
39 #include "content/public/common/content_constants.h" 39 #include "content/public/common/content_constants.h"
40 #include "content/public/common/content_switches.h" 40 #include "content/public/common/content_switches.h"
41 #include "content/public/common/url_constants.h" 41 #include "content/public/common/url_constants.h"
42 #include "content/public/common/user_agent.h" 42 #include "content/public/common/user_agent.h"
43 #include "extensions/common/constants.h" 43 #include "extensions/common/constants.h"
44 #include "gpu/config/gpu_info.h" 44 #include "gpu/config/gpu_info.h"
45 #include "net/http/http_util.h" 45 #include "net/http/http_util.h"
46 #include "ppapi/features/features.h"
46 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
47 #include "ui/base/layout.h" 48 #include "ui/base/layout.h"
48 #include "ui/base/resource/resource_bundle.h" 49 #include "ui/base/resource/resource_bundle.h"
49 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 50 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
50 51
51 #if defined(OS_LINUX) 52 #if defined(OS_LINUX)
52 #include <fcntl.h> 53 #include <fcntl.h>
53 #include "chrome/common/component_flash_hint_file_linux.h" 54 #include "chrome/common/component_flash_hint_file_linux.h"
54 #include "sandbox/linux/services/credentials.h" 55 #include "sandbox/linux/services/credentials.h"
55 #endif // defined(OS_LINUX) 56 #endif // defined(OS_LINUX)
(...skipping 12 matching lines...) Expand all
68 #include "chrome/common/extensions/extension_process_policy.h" 69 #include "chrome/common/extensions/extension_process_policy.h"
69 #include "extensions/common/features/feature_util.h" 70 #include "extensions/common/features/feature_util.h"
70 #endif 71 #endif
71 72
72 #if defined(ENABLE_PLUGINS) 73 #if defined(ENABLE_PLUGINS)
73 #include "content/public/common/pepper_plugin_info.h" 74 #include "content/public/common/pepper_plugin_info.h"
74 #include "flapper_version.h" // nogncheck In SHARED_INTERMEDIATE_DIR. 75 #include "flapper_version.h" // nogncheck In SHARED_INTERMEDIATE_DIR.
75 #include "ppapi/shared_impl/ppapi_permissions.h" 76 #include "ppapi/shared_impl/ppapi_permissions.h"
76 #endif 77 #endif
77 78
78 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) && \ 79 #if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS) && \
79 !defined(WIDEVINE_CDM_IS_COMPONENT) 80 !defined(WIDEVINE_CDM_IS_COMPONENT)
80 #define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT 81 #define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT
81 #include "chrome/common/widevine_cdm_constants.h" 82 #include "chrome/common/widevine_cdm_constants.h"
82 #endif 83 #endif
83 84
84 #if defined(OS_ANDROID) 85 #if defined(OS_ANDROID)
85 #include "chrome/common/chrome_media_client_android.h" 86 #include "chrome/common/chrome_media_client_android.h"
86 #endif 87 #endif
87 88
88 namespace { 89 namespace {
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 if (!origin_trial_policy_) 700 if (!origin_trial_policy_)
700 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); 701 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>();
701 return origin_trial_policy_.get(); 702 return origin_trial_policy_.get();
702 } 703 }
703 704
704 #if defined(OS_ANDROID) 705 #if defined(OS_ANDROID)
705 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { 706 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() {
706 return new ChromeMediaClientAndroid(); 707 return new ChromeMediaClientAndroid();
707 } 708 }
708 #endif // OS_ANDROID 709 #endif // OS_ANDROID
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698