Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_observation.cc |
| diff --git a/content/browser/indexed_db/indexed_db_observation.cc b/content/browser/indexed_db/indexed_db_observation.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf88e43fc77ba836fc30d6d5104962d42743161a |
| --- /dev/null |
| +++ b/content/browser/indexed_db/indexed_db_observation.cc |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/browser/indexed_db/indexed_db_observation.h" |
| + |
| +namespace content { |
| + |
| +IndexedDBObservation::IndexedDBObservation(OperationType type) : type_(type) { |
| + DCHECK(type_ == blink::WebIDBClear); |
|
Marijn Kruisselbrink
2016/07/08 23:57:57
DCHECK_EQ(type_, blink::WebIDBClear)
|
| +} |
| + |
| +IndexedDBObservation::IndexedDBObservation(OperationType type, |
| + IndexedDBKeyRange key_range) |
| + : type_(type), key_range_(key_range) { |
| + DCHECK(type_ == blink::WebIDBAdd || type_ == blink::WebIDBPut); |
|
Marijn Kruisselbrink
2016/07/08 23:57:57
Shouldn't this also allow WebIDBDelete?
palakj1
2016/07/11 05:33:26
Done
|
| +} |
| + |
| +IndexedDBObservation::IndexedDBObservation(OperationType type, |
| + IndexedDBKeyRange key_range, |
| + IndexedDBValue value) |
| + : type_(type), key_range_(key_range), value_(value) { |
| + DCHECK(type_ != blink::WebIDBDelete); |
|
Marijn Kruisselbrink
2016/07/08 23:57:57
DCHECK_NE(type_, blink::WebIDBDelete)
palakj1
2016/07/11 05:33:26
Changed.
|
| +} |
| + |
| +IndexedDBObservation::~IndexedDBObservation() {} |
| + |
| +} // namespace content |