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

Side by Side Diff: chrome_frame/utils.h

Issue 17153006: Chrome Frame turndown prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r208076 Created 7 years, 6 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/turndown_prompt/turndown_prompt_window.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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome_frame/turndown_prompt/turndown_prompt_window.cc ('k') | chrome_frame/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698