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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 840
841 // Mark each enabled feature as having been installed. 841 // Mark each enabled feature as having been installed.
842 if (!originTrialContext->featureBindingsInstalled("DurableStorage") && (Runt imeEnabledFeatures::durableStorageEnabled() || originTrialContext->isFeatureEnab led("DurableStorage"))) { 842 if (!originTrialContext->featureBindingsInstalled("DurableStorage") && (Runt imeEnabledFeatures::durableStorageEnabled() || originTrialContext->isFeatureEnab led("DurableStorage"))) {
843 originTrialContext->setFeatureBindingsInstalled("DurableStorage"); 843 originTrialContext->setFeatureBindingsInstalled("DurableStorage");
844 } 844 }
845 845
846 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) { 846 if (!originTrialContext->featureBindingsInstalled("WebBluetooth") && (Runtim eEnabledFeatures::webBluetoothEnabled() || originTrialContext->isFeatureEnabled( "WebBluetooth"))) {
847 originTrialContext->setFeatureBindingsInstalled("WebBluetooth"); 847 originTrialContext->setFeatureBindingsInstalled("WebBluetooth");
848 } 848 }
849 849
850 if (!originTrialContext->featureBindingsInstalled("WebShare") && (RuntimeEna bledFeatures::webShareEnabled() || originTrialContext->isFeatureEnabled("WebShar e"))) {
851 originTrialContext->setFeatureBindingsInstalled("WebShare");
852 }
853
850 if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabl edFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) { 854 if (!originTrialContext->featureBindingsInstalled("WebUSB") && (RuntimeEnabl edFeatures::webUSBEnabled() || originTrialContext->isFeatureEnabled("WebUSB"))) {
851 originTrialContext->setFeatureBindingsInstalled("WebUSB"); 855 originTrialContext->setFeatureBindingsInstalled("WebUSB");
852 } 856 }
853 857
854 if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (R untimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatu reEnabled("ForeignFetch"))) { 858 if (!originTrialContext->featureBindingsInstalled("LinkServiceWorker") && (R untimeEnabledFeatures::linkServiceWorkerEnabled() || originTrialContext->isFeatu reEnabled("ForeignFetch"))) {
855 originTrialContext->setFeatureBindingsInstalled("LinkServiceWorker"); 859 originTrialContext->setFeatureBindingsInstalled("LinkServiceWorker");
856 } 860 }
857 861
858 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) { 862 if (!originTrialContext->featureBindingsInstalled("ForeignFetch") && (Runtim eEnabledFeatures::foreignFetchEnabled() || originTrialContext->isFeatureEnabled( "ForeignFetch"))) {
859 originTrialContext->setFeatureBindingsInstalled("ForeignFetch"); 863 originTrialContext->setFeatureBindingsInstalled("ForeignFetch");
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 return frame->script().isolate(); 963 return frame->script().isolate();
960 } 964 }
961 965
962 v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value> value, v8::Isolate* iso late) 966 v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value> value, v8::Isolate* iso late)
963 { 967 {
964 value.As<v8::Object>()->SetIntegrityLevel(isolate->GetCurrentContext(), v8:: IntegrityLevel::kFrozen).ToChecked(); 968 value.As<v8::Object>()->SetIntegrityLevel(isolate->GetCurrentContext(), v8:: IntegrityLevel::kFrozen).ToChecked();
965 return value; 969 return value;
966 } 970 }
967 971
968 } // namespace blink 972 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698