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

Unified Diff: blimp/common/version_info.h

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add disconnection message and unit-tests Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: blimp/common/version_info.h
diff --git a/blimp/common/version_info.h b/blimp/common/version_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a6c20e05cc8ba40b1dafaba8db43746aaa0c922
--- /dev/null
+++ b/blimp/common/version_info.h
@@ -0,0 +1,23 @@
+// Copyright 2015 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 BLIMP_COMMON_VERSION_INFO_H_
+#define BLIMP_COMMON_VERSION_INFO_H_
+
+#include <string>
+
+#include "blimp/common/blimp_common_export.h"
+
+namespace blimp {
+
+// Engine version to request during assignment.
+// TODO(wez): Merge this into GetProtocolVersion().
+std::string GetAssignmentRequestVersion();
+
+// Latest version of the protocol supported by this build.
+int BLIMP_COMMON_EXPORT GetProtocolVersion();
+
+} // namespace blimp
+
+#endif // BLIMP_COMMON_VERSION_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698