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

Side by Side Diff: chrome/renderer/plugins/plugin_uma.cc

Issue 16281006: Use a direct include of strings headers in chrome/renderer/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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"
11 #include "base/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "content/public/common/content_constants.h" 12 #include "content/public/common/content_constants.h"
13 #include "third_party/widevine/cdm/widevine_cdm_common.h" 13 #include "third_party/widevine/cdm/widevine_cdm_common.h"
14 #include "webkit/plugins/plugin_constants.h" 14 #include "webkit/plugins/plugin_constants.h"
15 15
16 namespace { 16 namespace {
17 17
18 // String we will use to convert mime type to plugin type. 18 // String we will use to convert mime type to plugin type.
19 const char kWindowsMediaPlayerType[] = "application/x-mplayer2"; 19 const char kWindowsMediaPlayerType[] = "application/x-mplayer2";
20 const char kSilverlightTypePrefix[] = "application/x-silverlight"; 20 const char kSilverlightTypePrefix[] = "application/x-silverlight";
21 const char kRealPlayerTypePrefix[] = "audio/x-pn-realaudio"; 21 const char kRealPlayerTypePrefix[] = "audio/x-pn-realaudio";
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return SHOCKWAVE_FLASH; 197 return SHOCKWAVE_FLASH;
198 } 198 }
199 199
200 #if defined(ENABLE_PEPPER_CDMS) 200 #if defined(ENABLE_PEPPER_CDMS)
201 if (mime_type == kWidevineCdmPluginMimeType) 201 if (mime_type == kWidevineCdmPluginMimeType)
202 return WIDEVINE_CDM; 202 return WIDEVINE_CDM;
203 #endif 203 #endif
204 204
205 return UNSUPPORTED_MIMETYPE; 205 return UNSUPPORTED_MIMETYPE;
206 } 206 }
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/plugin_placeholder.cc ('k') | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698