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

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

Issue 2228873002: Added an origin trial for WebShare. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) { 605 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) {
606 if (executionContext->isDocument()) { 606 if (executionContext->isDocument()) {
607 // For global interfaces e.g. BluetoothUUID. 607 // For global interfaces e.g. BluetoothUUID.
608 V8WindowPartial::installWebBluetooth(scriptState, global); 608 V8WindowPartial::installWebBluetooth(scriptState, global);
609 // For navigator interfaces e.g. navigator.bluetooth. 609 // For navigator interfaces e.g. navigator.bluetooth.
610 V8NavigatorPartial::installWebBluetooth(scriptState); 610 V8NavigatorPartial::installWebBluetooth(scriptState);
611 } 611 }
612 } 612 }
613 613
614 if (!originTrialContext->featureBindingsInstalled("WebShare") && (RuntimeEna bledFeatures::webShareEnabled() || originTrialContext->isFeatureEnabled("WebShar e"))) {
615 if (executionContext->isDocument()) {
616 // For navigator interfaces e.g. navigator.share.
617 V8NavigatorPartial::installWebShare(scriptState);
618 }
619 }
620
614 if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabl edFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) { 621 if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabl edFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) {
615 if (executionContext->isDocument()) { 622 if (executionContext->isDocument()) {
616 // For global interfaces e.g. USBInterface. 623 // For global interfaces e.g. USBInterface.
617 V8WindowPartial::installWebUSB(scriptState, global); 624 V8WindowPartial::installWebUSB(scriptState, global);
618 // For navigator interfaces e.g. navigator.usb. 625 // For navigator interfaces e.g. navigator.usb.
619 V8NavigatorPartial::installWebUSB(scriptState); 626 V8NavigatorPartial::installWebUSB(scriptState);
620 } 627 }
621 } 628 }
622 629
623 630
624 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) { 631 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) {
625 if (executionContext->isServiceWorkerGlobalScope()) { 632 if (executionContext->isServiceWorkerGlobalScope()) {
626 V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global) ; 633 V8ServiceWorkerGlobalScope::installForeignFetch(scriptState, global) ;
627 } 634 }
628 } 635 }
629 } 636 }
630 637
631 void registerInstallOriginTrialsForModules() 638 void registerInstallOriginTrialsForModules()
632 { 639 {
633 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules); 640 s_originalInstallOriginTrialsFunction = setInstallOriginTrialsFunction(&inst allOriginTrialsForModules);
634 } 641 }
635 } // namespace blink 642 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698