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