summaryrefslogtreecommitdiffstats
path: root/chrome/common/automation_constants.h
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 18:12:57 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 18:12:57 +0000
commit75895ca88b16d4d80f5cdbb3132bbe9682601aa7 (patch)
tree4acd34948ac8cc93f4e320a5b98d1635edbdf0de /chrome/common/automation_constants.h
parent4f86f27ff9541cd91d4834a9c8163f5751d26e93 (diff)
downloadchromium_src-75895ca88b16d4d80f5cdbb3132bbe9682601aa7.zip
chromium_src-75895ca88b16d4d80f5cdbb3132bbe9682601aa7.tar.gz
chromium_src-75895ca88b16d4d80f5cdbb3132bbe9682601aa7.tar.bz2
Introduce a ChromeDriver automation version constant and a JSON request
for the client to fetch the server's version. If the server's version is newer than the client's, warn the client and quit. Additional small changes: -Add /healthz callback that sends a 200 status, for checking if the server is up. -Fix shutdown crash where the AutomationProxy is deleted on the wrong thread. -Initialize logging correctly. -Disable mongoose file serving capabilities by default BUG=none TEST=none Review URL: http://codereview.chromium.org/6690060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/automation_constants.h')
-rw-r--r--chrome/common/automation_constants.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/common/automation_constants.h b/chrome/common/automation_constants.h
index cddd589..ed7f2d2 100644
--- a/chrome/common/automation_constants.h
+++ b/chrome/common/automation_constants.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -50,6 +50,15 @@ enum MouseButton {
kRightButton,
};
+// The current version of ChromeDriver automation supported by Chrome.
+// This needs to be incremented for each change to ChromeDriver automation that
+// is not backwards compatible. Some examples of this would be:
+// - SendJSONRequest or Hello IPC messages change
+// - The interface for an individual ChromeDriver automation call changes in an
+// incompatible way
+// TODO(kkania): Investigate a better backwards compatible automation solution.
+extern const int kChromeDriverAutomationVersion;
+
} // namespace automation
// Used by AutomationProxy, declared here so that other headers don't need