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

Side by Side Diff: webkit/activex_shim/activex_shared.cc

Issue 72004: Relanding the following revisions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « webkit/activex_shim/activex_shared.h ('k') | webkit/default_plugin/plugin_main.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) 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
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
OLDNEW
« no previous file with comments | « webkit/activex_shim/activex_shared.h ('k') | webkit/default_plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698