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 <atlbase.h> | 8 #include <atlbase.h> |
9 #include <string> | 9 #include <string> |
10 #include <shdeprecated.h> | 10 #include <shdeprecated.h> |
11 #include <urlmon.h> | 11 #include <urlmon.h> |
12 #include <wininet.h> | 12 #include <wininet.h> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/file_path.h" |
15 #include "base/histogram.h" | 16 #include "base/histogram.h" |
16 #include "base/lock.h" | 17 #include "base/lock.h" |
17 #include "base/logging.h" | 18 #include "base/logging.h" |
18 #include "base/thread.h" | 19 #include "base/thread.h" |
19 | 20 |
20 // utils.h : Various utility functions and classes | 21 // utils.h : Various utility functions and classes |
21 | 22 |
22 extern const wchar_t kChromeContentPrefix[]; | 23 extern const wchar_t kChromeContentPrefix[]; |
23 extern const wchar_t kChromeProtocolPrefix[]; | 24 extern const wchar_t kChromeProtocolPrefix[]; |
24 extern const wchar_t kChromeFrameHeadlessMode[]; | 25 extern const wchar_t kChromeFrameHeadlessMode[]; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 IE_6, | 165 IE_6, |
165 IE_7, | 166 IE_7, |
166 IE_8, | 167 IE_8, |
167 }; | 168 }; |
168 | 169 |
169 // 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 |
170 // 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 |
171 // will be returned. | 172 // will be returned. |
172 IEVersion GetIEVersion(); | 173 IEVersion GetIEVersion(); |
173 | 174 |
| 175 FilePath GetIETemporaryFilesFolder(); |
| 176 |
174 // Retrieves the file version from a module handle without extra round trips | 177 // Retrieves the file version from a module handle without extra round trips |
175 // to the disk (as happens with the regular GetFileVersionInfo API). | 178 // to the disk (as happens with the regular GetFileVersionInfo API). |
176 // | 179 // |
177 // @param module A handle to the module for which to retrieve the version info. | 180 // @param module A handle to the module for which to retrieve the version info. |
178 // @param high On successful return holds the most significant part of the | 181 // @param high On successful return holds the most significant part of the |
179 // file version. Must be non-null. | 182 // file version. Must be non-null. |
180 // @param low On successful return holds the least significant part of the | 183 // @param low On successful return holds the least significant part of the |
181 // file version. May be NULL. | 184 // file version. May be NULL. |
182 // @returns true if the version info was successfully retrieved. | 185 // @returns true if the version info was successfully retrieved. |
183 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); | 186 bool GetModuleVersion(HMODULE module, uint32* high, uint32* low); |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 391 } |
389 | 392 |
390 // Fired when we want to notify IE about privacy changes. | 393 // Fired when we want to notify IE about privacy changes. |
391 #define WM_FIRE_PRIVACY_CHANGE_NOTIFICATION (WM_APP + 1) | 394 #define WM_FIRE_PRIVACY_CHANGE_NOTIFICATION (WM_APP + 1) |
392 | 395 |
393 // Maps the InternetCookieState enum to the corresponding CookieAction values | 396 // Maps the InternetCookieState enum to the corresponding CookieAction values |
394 // used for IE privacy stuff. | 397 // used for IE privacy stuff. |
395 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); | 398 int32 MapCookieStateToCookieAction(InternetCookieState cookie_state); |
396 | 399 |
397 #endif // CHROME_FRAME_UTILS_H_ | 400 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |