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

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: Route EndConnection to OnConnectionError notifications Created 4 years, 7 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..e8149243ecc92a4ae86d81256c481d49e0fee77c
--- /dev/null
+++ b/blimp/common/version_info.h
@@ -0,0 +1,22 @@
+// 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 {
+
+// Latest version of the protocol supported by this build.
+int BLIMP_COMMON_EXPORT GetProtocolVersion();
+
+// String containing the MAJOR.MINOR.BUILD.PATCH version of this build.
+std::string BLIMP_COMMON_EXPORT GetBuildVersion();
Kevin M 2016/05/25 21:19:19 Return a const char*?
Wez 2016/05/25 23:11:36 I followed the style of version_info::GetVersionNu
+
+} // namespace blimp
+
+#endif // BLIMP_COMMON_VERSION_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698