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

Side by Side Diff: mojo/public/interfaces/bindings/mojom_files.mojom

Issue 1776243004: Mojom runtime type info: Use compression and base64 encoding. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 [DartPackage="mojo", JavaPackage="org.chromium.mojo.bindings.types"] 5 [DartPackage="mojo", JavaPackage="org.chromium.mojo.bindings.types"]
6 module mojo.bindings.types; 6 module mojo.bindings.types;
7 7
8 import "mojom_types.mojom"; 8 import "mojom_types.mojom";
9 9
10 /* 10 /*
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 array<string>? imports; 63 array<string>? imports;
64 64
65 // resolved_types and resolved_values in MojomFileGraph contain 65 // resolved_types and resolved_values in MojomFileGraph contain
66 // respectively the types and constants declared in the union of all modules 66 // respectively the types and constants declared in the union of all modules
67 // in the graph. This KeysByType selects the keys of the types and constants 67 // in the graph. This KeysByType selects the keys of the types and constants
68 // defined in this module 68 // defined in this module
69 KeysByType declared_mojom_objects; 69 KeysByType declared_mojom_objects;
70 70
71 // The bytes encoding a |RuntimeTypeInfo| struct for this Mojom file, 71 // The bytes encoding a |RuntimeTypeInfo| struct for this Mojom file,
72 // using Mojo message serialization. Some implementations may not include 72 // using Mojo message serialization. Some implementations may not include
73 // this. 73 // this. This string contains the base64 encoding of the gzip-compressed
74 array<uint8>? serialized_runtime_type_info; 74 // bytes.
75 string? serialized_runtime_type_info;
75 }; 76 };
76 77
77 // Represents a directed acyclic graph of MojomFiles. 78 // Represents a directed acyclic graph of MojomFiles.
78 struct MojomFileGraph { 79 struct MojomFileGraph {
79 // All the files in this graph. The keys are |file_name|s. 80 // All the files in this graph. The keys are |file_name|s.
80 map<string, MojomFile> files; 81 map<string, MojomFile> files;
81 82
82 // All the resolved user-defined types known to this structure. The keys are 83 // All the resolved user-defined types known to this structure. The keys are
83 // the |type_key|s. 84 // the |type_key|s.
84 map<string, UserDefinedType> resolved_types; 85 map<string, UserDefinedType> resolved_types;
(...skipping 11 matching lines...) Expand all
96 array<string>? interfaces; 97 array<string>? interfaces;
97 array<string>? structs; 98 array<string>? structs;
98 array<string>? unions; 99 array<string>? unions;
99 array<string>? top_level_enums; 100 array<string>? top_level_enums;
100 array<string>? embedded_enums; 101 array<string>? embedded_enums;
101 102
102 // All the constant_keys known to the owning MojomFileGraph. 103 // All the constant_keys known to the owning MojomFileGraph.
103 array<string>? top_level_constants; 104 array<string>? top_level_constants;
104 array<string>? embedded_constants; 105 array<string>? embedded_constants;
105 }; 106 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698