| 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 // Thes file contains stuff that should be shared among projects that do some | 5 // Thes file contains stuff that should be shared among projects that do some |
| 6 // special handling with ActiveX. | 6 // special handling with ActiveX. |
| 7 | 7 |
| 8 #ifndef WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ | 8 #ifndef WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ |
| 9 #define WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ | 9 #define WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // If an ActiveX control is allowed to run from a specific URL. | 54 // If an ActiveX control is allowed to run from a specific URL. |
| 55 bool IsActiveXAllowed(const std::string& clsid, const GURL& url); | 55 bool IsActiveXAllowed(const std::string& clsid, const GURL& url); |
| 56 | 56 |
| 57 // If an ActiveX control's codebase comes from allowed websites. | 57 // If an ActiveX control's codebase comes from allowed websites. |
| 58 bool IsCodebaseAllowed(const std::string& clsid, const std::string& codebase); | 58 bool IsCodebaseAllowed(const std::string& clsid, const std::string& codebase); |
| 59 | 59 |
| 60 // Check If a given mimetype is of "application/x-oleobject" or | 60 // Check If a given mimetype is of "application/x-oleobject" or |
| 61 // "application/oleobject" | 61 // "application/oleobject" |
| 62 bool IsMimeTypeActiveX(const std::string& mimetype); | 62 bool IsMimeTypeActiveX(const std::string& mimetype); |
| 63 | 63 |
| 64 // Returns the NPAPI mime type for the CLSID passed in. On failure |
| 65 // return false |
| 66 bool GetMimeTypeForClsid(const std::string& clsid, std::string* mime_type); |
| 67 |
| 64 } // namespace activex_shim | 68 } // namespace activex_shim |
| 65 | 69 |
| 66 #endif // #ifndef WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ | 70 #endif // #ifndef WEBKIT_ACTIVEX_SHIM_ACTIVEX_SHARED_H__ |
| OLD | NEW |