summaryrefslogtreecommitdiffstats
path: root/chrome/installer/gcapi/gcapi.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 23:26:54 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 23:26:54 +0000
commita0c2b791e08881fd767deb20440266843e7490f2 (patch)
treed74e9a16f5ee87900bf481e460cf825892b4df29 /chrome/installer/gcapi/gcapi.h
parent653b2a10f65a1c1bd42f22998bc9ed3a0268b88f (diff)
downloadchromium_src-a0c2b791e08881fd767deb20440266843e7490f2.zip
chromium_src-a0c2b791e08881fd767deb20440266843e7490f2.tar.gz
chromium_src-a0c2b791e08881fd767deb20440266843e7490f2.tar.bz2
* Check in criteria checker project for Chrome bundle deals.
Already reviewed at - http://codereview.chromium.org/6347/ BUG=1380504 Review URL: http://codereview.chromium.org/12702 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/gcapi/gcapi.h')
-rwxr-xr-xchrome/installer/gcapi/gcapi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/installer/gcapi/gcapi.h b/chrome/installer/gcapi/gcapi.h
new file mode 100755
index 0000000..24998c6
--- /dev/null
+++ b/chrome/installer/gcapi/gcapi.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_INSTALLER_GCAPI_GCAPI_H_
+#define CHROME_INSTALLER_GCAPI_GCAPI_H_
+
+#include <windows.h>
+
+extern "C" {
+// Error conditions for GoogleChromeCompatibilityCheck().
+#define GCCC_ERROR_ALREADYPRESENT 0x01
+#define GCCC_ERROR_ACCESSDENIED 0x02
+#define GCCC_ERROR_OSNOTSUPPORTED 0x04
+
+#define DLLEXPORT __declspec(dllexport)
+
+// This function returns TRUE if the Google Chrome should be offered.
+// If the answer is FALSE, the reasons DWORD explains why. If you don't care
+// for the reason, you can pass NULL for reasons.
+DLLEXPORT BOOL __stdcall GoogleChromeCompatibilityCheck(DWORD *reasons);
+
+// Funtion pointer type declaration to use with GetProcAddress.
+typedef BOOL (__stdcall * GCCC_FN)(HKEY, DWORD *);
+} // extern "C"
+
+#endif // # CHROME_INSTALLER_GCAPI_GCAPI_H_