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

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

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Rebased. 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"
6 #include "content/common/indexed_db/indexed_db_struct_traits.h" 5 #include "content/common/indexed_db/indexed_db_struct_traits.h"
7 #include "mojo/common/common_custom_types_struct_traits.h" 6 #include "mojo/common/common_custom_types_struct_traits.h"
8 7
9 using content::IndexedDBKey; 8 using content::IndexedDBKey;
10 using content::IndexedDBKeyPath; 9 using content::IndexedDBKeyPath;
11 using content::IndexedDBKeyRange; 10 using content::IndexedDBKeyRange;
12 11
13 namespace mojo { 12 namespace mojo {
14 13
15 // static 14 // static
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 DCHECK(!base::ContainsKey(out->object_stores, object_store.id())); 230 DCHECK(!base::ContainsKey(out->object_stores, object_store.id()));
232 if (!StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView, 231 if (!StructTraits<indexed_db::mojom::ObjectStoreMetadataDataView,
233 content::IndexedDBObjectStoreMetadata>:: 232 content::IndexedDBObjectStoreMetadata>::
234 Read(object_store, &out->object_stores[object_store.id()])) 233 Read(object_store, &out->object_stores[object_store.id()]))
235 return false; 234 return false;
236 } 235 }
237 return true; 236 return true;
238 } 237 }
239 238
240 } // namespace mojo 239 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698