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

Side by Side Diff: Source/bindings/modules/v8/ModuleBindingsInitializer.cpp

Issue 618373003: [bindings] partial interfaces should not violate componentization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/modules/v8/BUILD.gn ('k') | Source/bindings/modules/v8/generated.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "bindings/modules/v8/ModuleBindingsInitializer.h" 6 #include "bindings/modules/v8/ModuleBindingsInitializer.h"
7 7
8 #include "bindings/core/v8/ModuleProxy.h" 8 #include "bindings/core/v8/ModuleProxy.h"
9 #include "bindings/core/v8/V8PerIsolateData.h" 9 #include "bindings/core/v8/V8PerIsolateData.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
11 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" 11 #include "modules/indexeddb/IDBPendingTransactionMonitor.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // initPartialInterfacesInModules is generated by
16 // generate_init_partial_interfaces.py.
17 void initPartialInterfacesInModules();
18
15 static void didLeaveScriptContextForModule(v8::Isolate* isolate) 19 static void didLeaveScriptContextForModule(v8::Isolate* isolate)
16 { 20 {
17 // Indexed DB requires that transactions are created with an internal |activ e| flag 21 // Indexed DB requires that transactions are created with an internal |activ e| flag
18 // set to true, but the flag becomes false when control returns to the event loop. 22 // set to true, but the flag becomes false when control returns to the event loop.
19 V8PerIsolateData::from(isolate)->ensureIDBPendingTransactionMonitor()->deact ivateNewTransactions(); 23 V8PerIsolateData::from(isolate)->ensureIDBPendingTransactionMonitor()->deact ivateNewTransactions();
20 } 24 }
21 25
22 void ModuleBindingsInitializer::init() 26 void ModuleBindingsInitializer::init()
23 { 27 {
24 ModuleProxy::moduleProxy().registerDidLeaveScriptContextForRecursionScope(di dLeaveScriptContextForModule); 28 ModuleProxy::moduleProxy().registerDidLeaveScriptContextForRecursionScope(di dLeaveScriptContextForModule);
29 initPartialInterfacesInModules();
25 } 30 }
26 31
27 } // namespace blink 32 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/modules/v8/BUILD.gn ('k') | Source/bindings/modules/v8/generated.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698