| OLD | NEW |
| 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_GIN_JAVA_BRIDGE_MESSAGES_H_ |
| 6 #define CONTENT_COMMON_GIN_JAVA_BRIDGE_MESSAGES_H_ |
| 7 |
| 5 // IPC messages for injected Java objects (Gin-based implementation). | 8 // IPC messages for injected Java objects (Gin-based implementation). |
| 6 | 9 |
| 7 // Multiply-included message file, hence no include guard. | 10 // Multiply-included message file, hence no include guard. |
| 8 | 11 |
| 9 #include <stdint.h> | 12 #include <stdint.h> |
| 10 | 13 |
| 11 #include "content/common/android/gin_java_bridge_errors.h" | 14 #include "content/common/android/gin_java_bridge_errors.h" |
| 12 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 13 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 14 | 17 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // 1. (Main usage) To inform that the JS wrapper of the object has | 69 // 1. (Main usage) To inform that the JS wrapper of the object has |
| 67 // been completely dereferenced and garbage-collected. | 70 // been completely dereferenced and garbage-collected. |
| 68 // | 71 // |
| 69 // 2. To notify the browser that wrapper creation has failed. The browser side | 72 // 2. To notify the browser that wrapper creation has failed. The browser side |
| 70 // assumes optimistically that every time an object is returned from a | 73 // assumes optimistically that every time an object is returned from a |
| 71 // method, the corresponding wrapper object will be successfully created on | 74 // method, the corresponding wrapper object will be successfully created on |
| 72 // the renderer side. Sending of this message informs the browser whether | 75 // the renderer side. Sending of this message informs the browser whether |
| 73 // this expectation has failed. | 76 // this expectation has failed. |
| 74 IPC_MESSAGE_ROUTED1(GinJavaBridgeHostMsg_ObjectWrapperDeleted, | 77 IPC_MESSAGE_ROUTED1(GinJavaBridgeHostMsg_ObjectWrapperDeleted, |
| 75 int32_t /* object_id */) | 78 int32_t /* object_id */) |
| 79 |
| 80 #endif // CONTENT_COMMON_GIN_JAVA_BRIDGE_MESSAGES_H_ |
| OLD | NEW |