| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <shdeprecated.h> | 8 #include <shdeprecated.h> |
| 9 #include <urlmon.h> | 9 #include <urlmon.h> |
| 10 #include <wininet.h> | 10 #include <wininet.h> |
| 11 | 11 |
| 12 #include <atlbase.h> | 12 #include <atlbase.h> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/file_path.h" | |
| 17 #include "base/histogram.h" | 16 #include "base/histogram.h" |
| 18 #include "base/lock.h" | 17 #include "base/lock.h" |
| 19 #include "base/logging.h" | 18 #include "base/logging.h" |
| 20 #include "base/thread.h" | 19 #include "base/thread.h" |
| 21 | 20 |
| 22 // utils.h : Various utility functions and classes | 21 // utils.h : Various utility functions and classes |
| 23 | 22 |
| 24 extern const wchar_t kChromeContentPrefix[]; | 23 extern const wchar_t kChromeContentPrefix[]; |
| 25 extern const wchar_t kChromeProtocolPrefix[]; | 24 extern const wchar_t kChromeProtocolPrefix[]; |
| 26 extern const wchar_t kChromeFrameHeadlessMode[]; | 25 extern const wchar_t kChromeFrameHeadlessMode[]; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 IE_6, | 165 IE_6, |
| 167 IE_7, | 166 IE_7, |
| 168 IE_8, | 167 IE_8, |
| 169 }; | 168 }; |
| 170 | 169 |
| 171 // To get the IE version when Chrome Frame is hosted in IE. Make sure that | 170 // To get the IE version when Chrome Frame is hosted in IE. Make sure that |
| 172 // the hosting browser is IE before calling this function, otherwise NON_IE | 171 // the hosting browser is IE before calling this function, otherwise NON_IE |
| 173 // will be returned. | 172 // will be returned. |
| 174 IEVersion GetIEVersion(); | 173 IEVersion GetIEVersion(); |
| 175 | 174 |
| 176 FilePath GetIETemporaryFilesFolder(); | |
| 177 | |
| 178 // Retrieves the file version from a module handle without extra round trips | 175 // Retrieves the file version from a module handle without extra round trips |
| 179 // to the disk (as happens with the regular GetFileVersionInfo API). | 176 // to the disk (as happens with the regular GetFileVersionInfo API). |
| 180 // | 177 // |
| 181 // @param module A handle to the module for which to retrieve the version info. | 178 // @param module A handle to the module for which to retrieve the version info. |
| 182 // @param high On successful return holds the most significant part of the | 179 // @param high On successful return holds the most significant part of the |
| 183 // file version. Must be non-null. | 180 // file version. Must be non-null. |
| 184 // @param low On successful return holds the least significant part of the | 181 // @param low On successful return holds the least significant part of the |
| 185 // file version. May be NULL. | 182 // file version. May be NULL. |
| 186 // @returns true if the version info was successfully retrieved. | 183 // @returns true if the version info was successfully retrieved. |
| 187 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); | 184 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // object. | 396 // object. |
| 400 // NOTE: Since the message is sent synchronously, the handler should only | 397 // NOTE: Since the message is sent synchronously, the handler should only |
| 401 // start asynchronous operations in order to not block the sender unnecessarily. | 398 // start asynchronous operations in order to not block the sender unnecessarily. |
| 402 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2) | 399 #define WM_DOWNLOAD_IN_HOST (WM_APP + 2) |
| 403 | 400 |
| 404 // Maps the InternetCookieState enum to the corresponding CookieAction values | 401 // Maps the InternetCookieState enum to the corresponding CookieAction values |
| 405 // used for IE privacy stuff. | 402 // used for IE privacy stuff. |
| 406 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); | 403 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); |
| 407 | 404 |
| 408 #endif // CHROME_FRAME_UTILS_H_ | 405 #endif // CHROME_FRAME_UTILS_H_ |
| OLD | NEW |