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

Side by Side Diff: content/common/indexed_db/indexed_db_struct_traits.h

Issue 2642973006: Include AIDL files in the presubmit check for IPC security. (Closed)
Patch Set: Move `using` statements. Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_
7 7
8 #include "content/common/indexed_db/indexed_db.mojom.h" 8 #include "content/common/indexed_db/indexed_db.mojom.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 return metadata.max_object_store_id; 131 return metadata.max_object_store_id;
132 } 132 }
133 static MapValuesArrayView<int64_t, content::IndexedDBObjectStoreMetadata> 133 static MapValuesArrayView<int64_t, content::IndexedDBObjectStoreMetadata>
134 object_stores(const content::IndexedDBDatabaseMetadata& metadata) { 134 object_stores(const content::IndexedDBDatabaseMetadata& metadata) {
135 return MapValuesToArray(metadata.object_stores); 135 return MapValuesToArray(metadata.object_stores);
136 } 136 }
137 static bool Read(indexed_db::mojom::DatabaseMetadataDataView data, 137 static bool Read(indexed_db::mojom::DatabaseMetadataDataView data,
138 content::IndexedDBDatabaseMetadata* out); 138 content::IndexedDBDatabaseMetadata* out);
139 }; 139 };
140 140
141 template <>
142 struct EnumTraits<indexed_db::mojom::CursorDirection,
143 blink::WebIDBCursorDirection> {
144 static indexed_db::mojom::CursorDirection ToMojom(
145 blink::WebIDBCursorDirection input);
146 static bool FromMojom(indexed_db::mojom::CursorDirection input,
147 blink::WebIDBCursorDirection* output);
148 };
149
150 template <>
151 struct EnumTraits<indexed_db::mojom::DataLoss, blink::WebIDBDataLoss> {
152 static indexed_db::mojom::DataLoss ToMojom(blink::WebIDBDataLoss input);
153 static bool FromMojom(indexed_db::mojom::DataLoss input,
154 blink::WebIDBDataLoss* output);
155 };
156
157 template <>
158 struct EnumTraits<indexed_db::mojom::OperationType,
159 blink::WebIDBOperationType> {
160 static indexed_db::mojom::OperationType ToMojom(
161 blink::WebIDBOperationType input);
162 static bool FromMojom(indexed_db::mojom::OperationType input,
163 blink::WebIDBOperationType* output);
164 };
165
166 template <>
167 struct EnumTraits<indexed_db::mojom::PutMode, blink::WebIDBPutMode> {
168 static indexed_db::mojom::PutMode ToMojom(blink::WebIDBPutMode input);
169 static bool FromMojom(indexed_db::mojom::PutMode input,
170 blink::WebIDBPutMode* output);
171 };
172
173 template <>
174 struct EnumTraits<indexed_db::mojom::TaskType, blink::WebIDBTaskType> {
175 static indexed_db::mojom::TaskType ToMojom(blink::WebIDBTaskType input);
176 static bool FromMojom(indexed_db::mojom::TaskType input,
177 blink::WebIDBTaskType* output);
178 };
179
180 template <>
181 struct EnumTraits<indexed_db::mojom::TransactionMode,
182 blink::WebIDBTransactionMode> {
183 static indexed_db::mojom::TransactionMode ToMojom(
184 blink::WebIDBTransactionMode input);
185 static bool FromMojom(indexed_db::mojom::TransactionMode input,
186 blink::WebIDBTransactionMode* output);
187 };
188
141 } // namespace mojo 189 } // namespace mojo
142 190
143 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_ 191 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_enum_traits.cc ('k') | content/common/indexed_db/indexed_db_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698