| 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 package org.chromium.mojo.bindings; | 5 package org.chromium.mojo.bindings; |
| 6 | 6 |
| 7 import org.chromium.mojo.system.Core; | 7 import org.chromium.mojo.system.Core; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Base class for all mojo structs. | 10 * Base class for all mojo structs. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 header.encode(encoder); | 60 header.encode(encoder); |
| 61 encode(encoder); | 61 encode(encoder); |
| 62 return new ServiceMessage(encoder.getMessage(), header); | 62 return new ServiceMessage(encoder.getMessage(), header); |
| 63 } | 63 } |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Use the given encoder to serialize this data structure. | 66 * Use the given encoder to serialize this data structure. |
| 67 */ | 67 */ |
| 68 protected abstract void encode(Encoder encoder); | 68 protected abstract void encode(Encoder encoder); |
| 69 } | 69 } |
| OLD | NEW |