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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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
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 "modules/indexeddb/IDBObservation.h" 5 #include "modules/indexeddb/IDBObservation.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/ToV8ForCore.h" 8 #include "bindings/core/v8/ToV8ForCore.h"
10 #include "bindings/modules/v8/ToV8ForModules.h" 9 #include "bindings/modules/v8/ToV8ForModules.h"
11 #include "bindings/modules/v8/V8BindingForModules.h" 10 #include "bindings/modules/v8/V8BindingForModules.h"
12 #include "modules/IndexedDBNames.h" 11 #include "modules/IndexedDBNames.h"
13 #include "modules/indexeddb/IDBAny.h" 12 #include "modules/indexeddb/IDBAny.h"
14 #include "modules/indexeddb/IDBKeyRange.h" 13 #include "modules/indexeddb/IDBKeyRange.h"
15 #include "modules/indexeddb/IDBValue.h" 14 #include "modules/indexeddb/IDBValue.h"
15 #include "platform/bindings/ScriptState.h"
16 #include "public/platform/modules/indexeddb/WebIDBObservation.h" 16 #include "public/platform/modules/indexeddb/WebIDBObservation.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 IDBObservation::~IDBObservation() {} 20 IDBObservation::~IDBObservation() {}
21 21
22 ScriptValue IDBObservation::key(ScriptState* script_state) { 22 ScriptValue IDBObservation::key(ScriptState* script_state) {
23 if (!key_range_) 23 if (!key_range_)
24 return ScriptValue::From(script_state, 24 return ScriptValue::From(script_state,
25 v8::Undefined(script_state->GetIsolate())); 25 v8::Undefined(script_state->GetIsolate()));
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 v8::Isolate* isolate) 78 v8::Isolate* isolate)
79 : key_range_(observation.key_range), 79 : key_range_(observation.key_range),
80 value_(IDBValue::Create(observation.value, isolate)), 80 value_(IDBValue::Create(observation.value, isolate)),
81 operation_type_(observation.type) {} 81 operation_type_(observation.type) {}
82 82
83 DEFINE_TRACE(IDBObservation) { 83 DEFINE_TRACE(IDBObservation) {
84 visitor->Trace(key_range_); 84 visitor->Trace(key_range_);
85 } 85 }
86 86
87 } // namespace blink 87 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698