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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2279543004: [DocWriteBlocking] Add feature to block doc.written scripts if 2g-like network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void WebRuntimeFeatures::enableAccelerated2dCanvas(bool enable) 63 void WebRuntimeFeatures::enableAccelerated2dCanvas(bool enable)
64 { 64 {
65 RuntimeEnabledFeatures::setAccelerated2dCanvasEnabled(enable); 65 RuntimeEnabledFeatures::setAccelerated2dCanvasEnabled(enable);
66 } 66 }
67 67
68 void WebRuntimeFeatures::enableAudioOutputDevices(bool enable) 68 void WebRuntimeFeatures::enableAudioOutputDevices(bool enable)
69 { 69 {
70 RuntimeEnabledFeatures::setAudioOutputDevicesEnabled(enable); 70 RuntimeEnabledFeatures::setAudioOutputDevicesEnabled(enable);
71 } 71 }
72 72
73 void WebRuntimeFeatures::enableBlockDocWriteIfEffectively2G(bool enable)
74 {
75 RuntimeEnabledFeatures::setBlockDocWriteIfEffectively2GEnabled(enable);
76 }
77
73 void WebRuntimeFeatures::enableCanvas2dImageChromium(bool enable) 78 void WebRuntimeFeatures::enableCanvas2dImageChromium(bool enable)
74 { 79 {
75 RuntimeEnabledFeatures::setCanvas2dImageChromiumEnabled(enable); 80 RuntimeEnabledFeatures::setCanvas2dImageChromiumEnabled(enable);
76 } 81 }
77 82
78 void WebRuntimeFeatures::enableColorCorrectRendering(bool enable) 83 void WebRuntimeFeatures::enableColorCorrectRendering(bool enable)
79 { 84 {
80 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled(enable); 85 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled(enable);
81 } 86 }
82 87
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 { 379 {
375 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable); 380 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable);
376 } 381 }
377 382
378 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le) 383 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le)
379 { 384 {
380 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able); 385 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able);
381 } 386 }
382 387
383 } // namespace blink 388 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698