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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 2339083002: Use InstallEvent even if ForeignFetch is disabled (Closed)
Patch Set: fix global-interface-listing-service-worker-expected.txt Created 4 years, 3 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 #include "bindings/core/v8/V8File.h" 35 #include "bindings/core/v8/V8File.h"
36 #include "bindings/core/v8/V8Uint8Array.h" 36 #include "bindings/core/v8/V8Uint8Array.h"
37 #include "bindings/modules/v8/ToV8ForModules.h" 37 #include "bindings/modules/v8/ToV8ForModules.h"
38 #include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h" 38 #include "bindings/modules/v8/V8DedicatedWorkerGlobalScopePartial.h"
39 #include "bindings/modules/v8/V8IDBCursor.h" 39 #include "bindings/modules/v8/V8IDBCursor.h"
40 #include "bindings/modules/v8/V8IDBCursorWithValue.h" 40 #include "bindings/modules/v8/V8IDBCursorWithValue.h"
41 #include "bindings/modules/v8/V8IDBDatabase.h" 41 #include "bindings/modules/v8/V8IDBDatabase.h"
42 #include "bindings/modules/v8/V8IDBIndex.h" 42 #include "bindings/modules/v8/V8IDBIndex.h"
43 #include "bindings/modules/v8/V8IDBKeyRange.h" 43 #include "bindings/modules/v8/V8IDBKeyRange.h"
44 #include "bindings/modules/v8/V8IDBObjectStore.h" 44 #include "bindings/modules/v8/V8IDBObjectStore.h"
45 #include "bindings/modules/v8/V8InstallEvent.h"
45 #include "bindings/modules/v8/V8NavigatorPartial.h" 46 #include "bindings/modules/v8/V8NavigatorPartial.h"
46 #include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h" 47 #include "bindings/modules/v8/V8ServiceWorkerGlobalScope.h"
47 #include "bindings/modules/v8/V8SharedWorkerGlobalScopePartial.h" 48 #include "bindings/modules/v8/V8SharedWorkerGlobalScopePartial.h"
48 #include "bindings/modules/v8/V8WindowPartial.h" 49 #include "bindings/modules/v8/V8WindowPartial.h"
49 #include "bindings/modules/v8/V8WorkerNavigatorPartial.h" 50 #include "bindings/modules/v8/V8WorkerNavigatorPartial.h"
50 #include "core/dom/DOMArrayBuffer.h" 51 #include "core/dom/DOMArrayBuffer.h"
51 #include "core/dom/DOMArrayBufferView.h" 52 #include "core/dom/DOMArrayBufferView.h"
52 #include "core/dom/ExecutionContext.h" 53 #include "core/dom/ExecutionContext.h"
53 #include "core/origin_trials/OriginTrialContext.h" 54 #include "core/origin_trials/OriginTrialContext.h"
54 #include "modules/indexeddb/IDBKey.h" 55 #include "modules/indexeddb/IDBKey.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 V8WindowPartial::installWebUSB(scriptState, global); 628 V8WindowPartial::installWebUSB(scriptState, global);
628 // For navigator interfaces e.g. navigator.usb. 629 // For navigator interfaces e.g. navigator.usb.
629 V8NavigatorPartial::installWebUSB(scriptState); 630 V8NavigatorPartial::installWebUSB(scriptState);
630 } 631 }
631 } 632 }
632 633
633 634
634 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) { 635 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) {
635 if (executionContext->isServiceWorkerGlobalScope()) { 636 if (executionContext->isServiceWorkerGlobalScope()) {
636 V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global) ; 637 V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global) ;
638 V8InstallEvent::installForeignFetch(scriptState);
637 } 639 }
638 } 640 }
639 } 641 }
640 642
641 void registerInstallOriginTrialsForModules() 643 void registerInstallOriginTrialsForModules()
642 { 644 {
643 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules); 645 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules);
644 } 646 }
645 } // namespace blink 647 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698