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

Side by Side Diff: content/child/runtime_features.cc

Issue 2669843002: [wasm] Change WebAssembly flags option to only cover structured cloning. (Closed)
Patch Set: Created 3 years, 10 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 | « chrome/app/generated_resources.grd ('k') | content/renderer/render_process_impl.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (command_line.HasSwitch(switches::kDisableNotifications)) { 93 if (command_line.HasSwitch(switches::kDisableNotifications)) {
94 WebRuntimeFeatures::enableNotifications(false); 94 WebRuntimeFeatures::enableNotifications(false);
95 95
96 // Chrome's Push Messaging implementation relies on Web Notifications. 96 // Chrome's Push Messaging implementation relies on Web Notifications.
97 WebRuntimeFeatures::enablePushMessaging(false); 97 WebRuntimeFeatures::enablePushMessaging(false);
98 } 98 }
99 99
100 if (!base::FeatureList::IsEnabled(features::kNotificationContentImage)) 100 if (!base::FeatureList::IsEnabled(features::kNotificationContentImage))
101 WebRuntimeFeatures::enableNotificationContentImage(false); 101 WebRuntimeFeatures::enableNotificationContentImage(false);
102 102
103 // For the time being, enable wasm serialization when wasm is enabled, 103 // For the time being, wasm serialization is separately controlled
104 // since the whole wasm space is experimental. We have the flexibility 104 // by this flag. WebAssembly APIs and compilation is now enabled
105 // to decouple the two. 105 // unconditionally in V8.
106 if (base::FeatureList::IsEnabled(features::kWebAssembly)) 106 if (base::FeatureList::IsEnabled(features::kWebAssembly))
107 WebRuntimeFeatures::enableWebAssemblySerialization(true); 107 WebRuntimeFeatures::enableWebAssemblySerialization(true);
108 108
109 WebRuntimeFeatures::enableSharedArrayBuffer( 109 WebRuntimeFeatures::enableSharedArrayBuffer(
110 base::FeatureList::IsEnabled(features::kSharedArrayBuffer)); 110 base::FeatureList::IsEnabled(features::kSharedArrayBuffer));
111 111
112 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) 112 if (command_line.HasSwitch(switches::kDisableSharedWorkers))
113 WebRuntimeFeatures::enableSharedWorker(false); 113 WebRuntimeFeatures::enableSharedWorker(false);
114 114
115 if (command_line.HasSwitch(switches::kDisableSpeechAPI)) 115 if (command_line.HasSwitch(switches::kDisableSpeechAPI))
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 371 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
372 std::vector<std::string> disabled_features = base::SplitString( 372 std::vector<std::string> disabled_features = base::SplitString(
373 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 373 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
374 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 374 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
375 for (const std::string& feature : disabled_features) 375 for (const std::string& feature : disabled_features)
376 WebRuntimeFeatures::enableFeatureFromString(feature, false); 376 WebRuntimeFeatures::enableFeatureFromString(feature, false);
377 } 377 }
378 } 378 }
379 379
380 } // namespace content 380 } // namespace content
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698