| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/plugins/plugin_uma.h" | 5 #include "chrome/renderer/plugins/plugin_uma.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 return QUICKTIME; | 172 return QUICKTIME; |
| 173 | 173 |
| 174 if (mime_type == content::kBrowserPluginMimeType) | 174 if (mime_type == content::kBrowserPluginMimeType) |
| 175 return BROWSER_PLUGIN; | 175 return BROWSER_PLUGIN; |
| 176 | 176 |
| 177 if (mime_type == content::kFlashPluginSwfMimeType || | 177 if (mime_type == content::kFlashPluginSwfMimeType || |
| 178 mime_type == content::kFlashPluginSplMimeType) { | 178 mime_type == content::kFlashPluginSplMimeType) { |
| 179 return SHOCKWAVE_FLASH; | 179 return SHOCKWAVE_FLASH; |
| 180 } | 180 } |
| 181 | 181 |
| 182 #if defined(ENABLE_PEPPER_CDMS) | 182 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 183 if (mime_type == kWidevineCdmPluginMimeType) | 183 if (mime_type == kWidevineCdmPluginMimeType) |
| 184 return WIDEVINE_CDM; | 184 return WIDEVINE_CDM; |
| 185 #endif | 185 #endif |
| 186 | 186 |
| 187 return UNSUPPORTED_MIMETYPE; | 187 return UNSUPPORTED_MIMETYPE; |
| 188 } | 188 } |
| OLD | NEW |