| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "webkit/activex_shim/activex_shared.h" | 5 #include "webkit/activex_shim/activex_shared.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 return false; | 218 return false; |
| 219 else | 219 else |
| 220 return file_version_ls >= requested_version_ls; | 220 return file_version_ls >= requested_version_ls; |
| 221 } | 221 } |
| 222 | 222 |
| 223 bool IsMimeTypeActiveX(const std::string& mimetype) { | 223 bool IsMimeTypeActiveX(const std::string& mimetype) { |
| 224 return LowerCaseEqualsASCII(mimetype, "application/x-oleobject") || | 224 return LowerCaseEqualsASCII(mimetype, "application/x-oleobject") || |
| 225 LowerCaseEqualsASCII(mimetype, "application/oleobject"); | 225 LowerCaseEqualsASCII(mimetype, "application/oleobject"); |
| 226 } | 226 } |
| 227 | 227 |
| 228 bool GetMimeTypeForClsid(const std::string& clsid, std::string* mime_type) { |
| 229 DCHECK(mime_type != NULL); |
| 230 |
| 231 if (!base::strcasecmp(clsid.c_str(), |
| 232 "6BF52A52-394A-11D3-B153-00C04F79FAA6") || |
| 233 !base::strcasecmp(clsid.c_str(), |
| 234 "22D6F312-B0F6-11D0-94AB-0080C74C7E95")) { |
| 235 *mime_type = "application/x-mplayer2"; |
| 236 return true; |
| 237 } |
| 238 return false; |
| 239 } |
| 240 |
| 228 } // namespace activex_shim | 241 } // namespace activex_shim |
| OLD | NEW |