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/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return QUICKTIME; | 190 return QUICKTIME; |
191 | 191 |
192 if (mime_type == content::kBrowserPluginMimeType) | 192 if (mime_type == content::kBrowserPluginMimeType) |
193 return BROWSER_PLUGIN; | 193 return BROWSER_PLUGIN; |
194 | 194 |
195 if (mime_type == kFlashPluginSwfMimeType || | 195 if (mime_type == kFlashPluginSwfMimeType || |
196 mime_type == kFlashPluginSplMimeType) { | 196 mime_type == kFlashPluginSplMimeType) { |
197 return SHOCKWAVE_FLASH; | 197 return SHOCKWAVE_FLASH; |
198 } | 198 } |
199 | 199 |
| 200 #if defined(ENABLE_PEPPER_CDMS) |
200 if (mime_type == kWidevineCdmPluginMimeType) | 201 if (mime_type == kWidevineCdmPluginMimeType) |
201 return WIDEVINE_CDM; | 202 return WIDEVINE_CDM; |
| 203 #endif |
202 | 204 |
203 return UNSUPPORTED_MIMETYPE; | 205 return UNSUPPORTED_MIMETYPE; |
204 } | 206 } |
OLD | NEW |