| 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 #ifndef CHROME_FRAME_UTILS_H_ | 5 #ifndef CHROME_FRAME_UTILS_H_ |
| 6 #define CHROME_FRAME_UTILS_H_ | 6 #define CHROME_FRAME_UTILS_H_ |
| 7 | 7 |
| 8 #include <OAidl.h> | 8 #include <OAidl.h> |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // to the disk (as happens with the regular GetFileVersionInfo API). | 211 // to the disk (as happens with the regular GetFileVersionInfo API). |
| 212 // | 212 // |
| 213 // @param module A handle to the module for which to retrieve the version info. | 213 // @param module A handle to the module for which to retrieve the version info. |
| 214 // @param high On successful return holds the most significant part of the file | 214 // @param high On successful return holds the most significant part of the file |
| 215 // version. Must be non-null. | 215 // version. Must be non-null. |
| 216 // @param low On successful return holds the least significant part of the file | 216 // @param low On successful return holds the least significant part of the file |
| 217 // version. May be NULL. | 217 // version. May be NULL. |
| 218 // @returns true if the version info was successfully retrieved. | 218 // @returns true if the version info was successfully retrieved. |
| 219 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); | 219 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); |
| 220 | 220 |
| 221 // @returns the module handle to which an address belongs. | |
| 222 HMODULE GetModuleFromAddress(void* address); | |
| 223 | |
| 224 // Return if the IEXPLORE is in private mode. The IEIsInPrivateBrowsing() checks | 221 // Return if the IEXPLORE is in private mode. The IEIsInPrivateBrowsing() checks |
| 225 // whether current process is IEXPLORE. | 222 // whether current process is IEXPLORE. |
| 226 bool IsIEInPrivate(); | 223 bool IsIEInPrivate(); |
| 227 | 224 |
| 228 // Calls [ieframe|shdocvw]!DoFileDownload to initiate a download. | 225 // Calls [ieframe|shdocvw]!DoFileDownload to initiate a download. |
| 229 HRESULT DoFileDownloadInIE(const wchar_t* url); | 226 HRESULT DoFileDownloadInIE(const wchar_t* url); |
| 230 | 227 |
| 231 // Construct a menu from the model sent from Chrome. | 228 // Construct a menu from the model sent from Chrome. |
| 232 HMENU BuildContextMenu(const ContextMenuModel& menu_model); | 229 HMENU BuildContextMenu(const ContextMenuModel& menu_model); |
| 233 | 230 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 bool IsChromeFrameDocument(IWebBrowser2* web_browser); | 600 bool IsChromeFrameDocument(IWebBrowser2* web_browser); |
| 604 | 601 |
| 605 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the | 602 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the |
| 606 // value passed in. This is only done if the existing connection limit is | 603 // value passed in. This is only done if the existing connection limit is |
| 607 // lesser than the connection limit passed in. This function attempts to | 604 // lesser than the connection limit passed in. This function attempts to |
| 608 // increase the connection count once per process. | 605 // increase the connection count once per process. |
| 609 // Returns true on success. | 606 // Returns true on success. |
| 610 bool IncreaseWinInetConnections(DWORD connections); | 607 bool IncreaseWinInetConnections(DWORD connections); |
| 611 | 608 |
| 612 #endif // CHROME_FRAME_UTILS_H_ | 609 #endif // CHROME_FRAME_UTILS_H_ |
| OLD | NEW |