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

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

Issue 603893002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes made as per comments Created 6 years, 2 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
« no previous file with comments | « no previous file | content/common/gin_java_bridge_messages.h » ('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 #ifndef CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_ 5 #ifndef CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_
6 #define CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_ 6 #define CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 enum GinJavaBridgeError { 12 enum GinJavaBridgeError {
13 kGinJavaBridgeNoError = 0, 13 kGinJavaBridgeNoError = 0,
14 kGinJavaBridgeUnknownObjectId, 14 kGinJavaBridgeUnknownObjectId,
15 kGinJavaBridgeObjectIsGone, 15 kGinJavaBridgeObjectIsGone,
16 kGinJavaBridgeMethodNotFound, 16 kGinJavaBridgeMethodNotFound,
17 kGinJavaBridgeAccessToObjectGetClassIsBlocked, 17 kGinJavaBridgeAccessToObjectGetClassIsBlocked,
18 kGinJavaBridgeJavaExceptionRaised, 18 kGinJavaBridgeJavaExceptionRaised,
19 kGinJavaBridgeNonAssignableTypes, 19 kGinJavaBridgeNonAssignableTypes,
20 kGinJavaBridgeRenderFrameDeleted, 20 kGinJavaBridgeRenderFrameDeleted,
21 kGinJavaBridgeErrorLast = kGinJavaBridgeRenderFrameDeleted
21 }; 22 };
22 23
23 CONTENT_EXPORT const char* GinJavaBridgeErrorToString(GinJavaBridgeError error); 24 CONTENT_EXPORT const char* GinJavaBridgeErrorToString(GinJavaBridgeError error);
24 25
25 } // namespace content 26 } // namespace content
26 27
27 #endif // CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_ 28 #endif // CONTENT_COMMON_ANDROID_GIN_JAVA_BRIDGE_ERRORS_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gin_java_bridge_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698