OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/indexed_db/indexed_db_observation.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 IndexedDBObservation::IndexedDBObservation(int32_t object_store_id, |
| 10 OperationType type) |
| 11 : object_store_id_(object_store_id), type_(type) {} |
| 12 |
| 13 IndexedDBObservation::IndexedDBObservation(int32_t object_store_id, |
| 14 OperationType type, |
| 15 IndexedDBKeyRange key_range) |
| 16 : object_store_id_(object_store_id), type_(type), key_range_(key_range) { |
| 17 DCHECK_NE(type_, blink::WebIDBClear); |
| 18 } |
| 19 |
| 20 IndexedDBObservation::IndexedDBObservation(int32_t object_store_id, |
| 21 OperationType type, |
| 22 IndexedDBKeyRange key_range, |
| 23 IndexedDBValue value) |
| 24 : object_store_id_(object_store_id), |
| 25 type_(type), |
| 26 key_range_(key_range), |
| 27 value_(value) { |
| 28 DCHECK(type_ == blink::WebIDBAdd || type_ == blink::WebIDBPut); |
| 29 } |
| 30 |
| 31 IndexedDBObservation::~IndexedDBObservation() {} |
| 32 |
| 33 } // namespace content |
OLD | NEW |