OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 // Returns true iff the two urls have the same scheme, same host and same port. | 240 // Returns true iff the two urls have the same scheme, same host and same port. |
241 bool HaveSameOrigin(const std::string& url1, const std::string& url2); | 241 bool HaveSameOrigin(const std::string& url1, const std::string& url2); |
242 | 242 |
243 // Get a boolean configuration value from registry. | 243 // Get a boolean configuration value from registry. |
244 bool GetConfigBool(bool default_value, const wchar_t* value_name); | 244 bool GetConfigBool(bool default_value, const wchar_t* value_name); |
245 | 245 |
246 // Gets an integer configuration value from the registry. | 246 // Gets an integer configuration value from the registry. |
247 int GetConfigInt(int default_value, const wchar_t* value_name); | 247 int GetConfigInt(int default_value, const wchar_t* value_name); |
248 | 248 |
| 249 // Gets a 64-bit integer configuration value from the registry. |
| 250 int64 GetConfigInt64(int64 default_value, const wchar_t* value_name); |
| 251 |
249 // Sets an integer configuration value in the registry. | 252 // Sets an integer configuration value in the registry. |
250 bool SetConfigInt(const wchar_t* value_name, int value); | 253 bool SetConfigInt(const wchar_t* value_name, int value); |
251 | 254 |
252 // Sets a boolean integer configuration value in the registry. | 255 // Sets a boolean integer configuration value in the registry. |
253 bool SetConfigBool(const wchar_t* value_name, bool value); | 256 bool SetConfigBool(const wchar_t* value_name, bool value); |
254 | 257 |
| 258 // Sets a 64-bit integer configuration value in the registry. |
| 259 bool SetConfigInt64(const wchar_t* value_name, int64 value); |
| 260 |
255 // Deletes the configuration value passed in. | 261 // Deletes the configuration value passed in. |
256 bool DeleteConfigValue(const wchar_t* value_name); | 262 bool DeleteConfigValue(const wchar_t* value_name); |
257 | 263 |
258 // Returns true if we are running in headless mode in which case we need to | 264 // Returns true if we are running in headless mode in which case we need to |
259 // gather crash dumps, etc to send them to the crash server. | 265 // gather crash dumps, etc to send them to the crash server. |
260 bool IsHeadlessMode(); | 266 bool IsHeadlessMode(); |
261 | 267 |
262 // Returns true if we are running in accessible mode in which we need to enable | 268 // Returns true if we are running in accessible mode in which we need to enable |
263 // renderer accessibility for use in automation. | 269 // renderer accessibility for use in automation. |
264 bool IsAccessibleMode(); | 270 bool IsAccessibleMode(); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // increase the connection count once per process. | 602 // increase the connection count once per process. |
597 // Returns true on success. | 603 // Returns true on success. |
598 bool IncreaseWinInetConnections(DWORD connections); | 604 bool IncreaseWinInetConnections(DWORD connections); |
599 | 605 |
600 // Sets |profile_path| to the path for the Chrome Frame |profile_name| | 606 // Sets |profile_path| to the path for the Chrome Frame |profile_name| |
601 // profile. | 607 // profile. |
602 void GetChromeFrameProfilePath(const string16& profile_name, | 608 void GetChromeFrameProfilePath(const string16& profile_name, |
603 base::FilePath* profile_path); | 609 base::FilePath* profile_path); |
604 | 610 |
605 #endif // CHROME_FRAME_UTILS_H_ | 611 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |