Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/browser/indexed_db/indexed_db_observer.h" | 5 #include "content/browser/indexed_db/indexed_db_observer.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 IndexedDBObserver::IndexedDBObserver(int32_t observer_id) | 9 IndexedDBObserver::IndexedDBObserver(int32_t observer_id, |
| 10 : observer_id_(observer_id) {} | 10 std::set<int64_t> object_store_ids, |
| 11 bool include_transaction, | |
| 12 bool no_records, | |
| 13 bool values) | |
| 14 : id_(observer_id), | |
| 15 object_store_ids_(object_store_ids), | |
| 16 include_transaction_(include_transaction), | |
| 17 no_records_(no_records), | |
| 18 values_(values) { | |
| 19 for (int i = 0; i < 4; i++) | |
|
jsbell
2016/07/14 20:08:13
No magic number: use blink::WebIDBOperationTypeCou
palakj1
2016/07/15 20:16:04
Done.
| |
| 20 operation_type_[i] = true; | |
| 21 } | |
| 11 | 22 |
| 12 IndexedDBObserver::~IndexedDBObserver() {} | 23 IndexedDBObserver::~IndexedDBObserver() {} |
| 13 | 24 |
| 14 } // namespace content | 25 } // namespace content |
| OLD | NEW |