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

Side by Side Diff: content/common/android/gin_java_bridge_errors.cc

Issue 393733002: [Android] Check for Java object types covariance in Java Bridge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated findbugs_known_bugs Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/android/gin_java_bridge_errors.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/android/gin_java_bridge_errors.h" 5 #include "content/common/android/gin_java_bridge_errors.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 const char* GinJavaBridgeErrorToString(GinJavaBridgeError error) { 11 const char* GinJavaBridgeErrorToString(GinJavaBridgeError error) {
12 switch (error) { 12 switch (error) {
13 case kGinJavaBridgeNoError: 13 case kGinJavaBridgeNoError:
14 return "No error"; 14 return "No error";
15 case kGinJavaBridgeUnknownObjectId: 15 case kGinJavaBridgeUnknownObjectId:
16 return "Unknown Java object ID"; 16 return "Unknown Java object ID";
17 case kGinJavaBridgeObjectIsGone: 17 case kGinJavaBridgeObjectIsGone:
18 return "Java object is gone"; 18 return "Java object is gone";
19 case kGinJavaBridgeMethodNotFound: 19 case kGinJavaBridgeMethodNotFound:
20 return "Method not found"; 20 return "Method not found";
21 case kGinJavaBridgeAccessToObjectGetClassIsBlocked: 21 case kGinJavaBridgeAccessToObjectGetClassIsBlocked:
22 return "Access to java.lang.Object.getClass is blocked"; 22 return "Access to java.lang.Object.getClass is blocked";
23 case kGinJavaBridgeJavaExceptionRaised: 23 case kGinJavaBridgeJavaExceptionRaised:
24 return "Java exception was raised during method invocation"; 24 return "Java exception was raised during method invocation";
25 case kGinJavaBridgeNonAssignableTypes:
26 return "The type of the object passed to the method is incompatible "
27 "with the type of method's argument";
25 } 28 }
26 NOTREACHED(); 29 NOTREACHED();
27 return "Unknown error"; 30 return "Unknown error";
28 } 31 }
29 32
30 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « content/common/android/gin_java_bridge_errors.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698