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

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

Issue 2405423002: [Video Capture Service] Move Mojo structs and enums to media/capture/mojo (Closed)
Patch Set: Fix dependency issues Created 4 years, 1 month 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 #include "content/common/indexed_db/indexed_db_param_traits.h" 5 #include "content/common/indexed_db/indexed_db_param_traits.h"
6 #include "content/common/indexed_db/indexed_db_struct_traits.h" 6 #include "content/common/indexed_db/indexed_db_struct_traits.h"
7 #include "mojo/common/common_custom_types_struct_traits.h"
7 8
8 namespace mojo { 9 namespace mojo {
9 10
10 bool StructTraits<indexed_db::mojom::IndexMetadataDataView, 11 bool StructTraits<indexed_db::mojom::IndexMetadataDataView,
11 content::IndexedDBIndexMetadata>:: 12 content::IndexedDBIndexMetadata>::
12 Read(indexed_db::mojom::IndexMetadataDataView data, 13 Read(indexed_db::mojom::IndexMetadataDataView data,
13 content::IndexedDBIndexMetadata* out) { 14 content::IndexedDBIndexMetadata* out) {
14 out->id = data.id(); 15 out->id = data.id();
15 if (!data.ReadName(&out->name)) 16 if (!data.ReadName(&out->name))
16 return false; 17 return false;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 DCHECK(!base::ContainsKey(out->object_stores, object_store.id())); 65 DCHECK(!base::ContainsKey(out->object_stores, object_store.id()));
65 if (!StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView, 66 if (!StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView,
66 content::IndexedDBObjectStoreMetadata>:: 67 content::IndexedDBObjectStoreMetadata>::
67 Read(object_store, &out->object_stores[object_store.id()])) 68 Read(object_store, &out->object_stores[object_store.id()]))
68 return false; 69 return false;
69 } 70 }
70 return true; 71 return true;
71 } 72 }
72 73
73 } // namespace mojo 74 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698