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

Side by Side Diff: chrome_frame/utils.h

Issue 9121046: Cleanup in ProcessSingleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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 | « chrome_frame/buggy_bho_handling.cc ('k') | chrome_frame/utils.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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome_frame/buggy_bho_handling.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698