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

Side by Side Diff: content/browser/indexed_db/indexed_db_observation.cc

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expected tests updated Created 4 years, 5 months 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
(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
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_observation.h ('k') | content/browser/indexed_db/indexed_db_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698