summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.h
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 01:09:28 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 01:09:28 +0000
commit7bc272f38646abb81b58c89a59d8e6842f9e9631 (patch)
tree8e3c884ad1549c445e86925df673fcd0d8285d1d /chrome_frame/utils.h
parent0923559a1a020690c1d199fda3c55f67d2d54335 (diff)
downloadchromium_src-7bc272f38646abb81b58c89a59d8e6842f9e9631.zip
chromium_src-7bc272f38646abb81b58c89a59d8e6842f9e9631.tar.gz
chromium_src-7bc272f38646abb81b58c89a59d8e6842f9e9631.tar.bz2
Added support for running reliability tests for ChromeFrame on similar lines as Chrome. We only run these
tests for IE at this point. The reliability test code for Chrome has been copied and modified accordingly. Other related changes in this CL include the following:- 1. If ChromeFrame is running in headless mode determined by a registry value in HKCU\Software\Google\ChromeFrame we initialize ChromeFrame crash reporting and connect to the Chrome crash server. This would enable us to gather crash dumps from the reliability test runs and report the same. 2. The LowIntegrity fixes for the WebBrowser which Stoyan had done a while back are only needed for IE7 on Vista. For this CL though we just do the requisite hacks if the OS is Vista. For Windows7 the returned IWebBrowser interface pointer works fine. 3. I moved the WebBrowserEventSink to chrome_frame_test_utils as this class is now shared. Fixes portions of http://code.google.com/p/chromium/issues/detail?id=29451 Bug=29451 Review URL: http://codereview.chromium.org/465074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.h')
-rw-r--r--chrome_frame/utils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome_frame/utils.h b/chrome_frame/utils.h
index a685691..f71bb7d 100644
--- a/chrome_frame/utils.h
+++ b/chrome_frame/utils.h
@@ -181,6 +181,19 @@ bool GetConfigBool(bool default_value, const wchar_t* value_name);
// Gets an integer configuration value from the registry.
int GetConfigInt(int default_value, const wchar_t* value_name);
+// Sets an integer configuration value in the registry.
+bool SetConfigInt(const wchar_t* value_name, int value);
+
+// Sets a boolean integer configuration value in the registry.
+bool SetConfigBool(const wchar_t* value_name, bool value);
+
+// Deletes the configuration value passed in.
+bool DeleteConfigValue(const wchar_t* value_name);
+
+// Returns true if we are running in headless mode in which case we need to
+// gather crash dumps, etc to send them to the crash server.
+bool IsHeadlessMode();
+
// Check if this url is opting into Chrome Frame based on static settings.
bool IsOptInUrl(const wchar_t* url);
@@ -278,4 +291,6 @@ STDMETHODIMP QueryInterfaceIfDelegateSupports(void* obj, REFIID iid,
#define COM_INTERFACE_BLIND_DELEGATE() \
COM_INTERFACE_ENTRY_FUNC_BLIND(0, CheckOutgoingInterface<_ComMapClass>)
+extern const wchar_t kChromeFrameHeadlessMode[];
+
#endif // CHROME_FRAME_UTILS_H_