summaryrefslogtreecommitdiffstats
path: root/content/common/android/gin_java_bridge_errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/android/gin_java_bridge_errors.h')
-rw-r--r--content/common/android/gin_java_bridge_errors.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/content/common/android/gin_java_bridge_errors.h b/content/common/android/gin_java_bridge_errors.h
new file mode 100644
index 0000000..75a8970
--- /dev/null
+++ b/content/common/android/gin_java_bridge_errors.h
@@ -0,0 +1,25 @@
+// Copyright 2014 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 CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_
+#define CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+enum GinJavaBridgeError {
+ kGinJavaBridgeNoError = 0,
+ kGinJavaBridgeUnknownObjectId,
+ kGinJavaBridgeObjectIsGone,
+ kGinJavaBridgeMethodNotFound,
+ kGinJavaBridgeAccessToObjectGetClassIsBlocked,
+ kGinJavaBridgeJavaExceptionRaised,
+};
+
+CONTENT_EXPORT const char* GinJavaBridgeErrorToString(GinJavaBridgeError error);
+
+} // namespace content
+
+#endif // CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_