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

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: Added helper method: isConnectionEffectively2G 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void WebRuntimeFeatures::enableAccelerated2dCanvas(bool enable) 68 void WebRuntimeFeatures::enableAccelerated2dCanvas(bool enable)
69 { 69 {
70 RuntimeEnabledFeatures::setAccelerated2dCanvasEnabled(enable); 70 RuntimeEnabledFeatures::setAccelerated2dCanvasEnabled(enable);
71 } 71 }
72 72
73 void WebRuntimeFeatures::enableAudioOutputDevices(bool enable) 73 void WebRuntimeFeatures::enableAudioOutputDevices(bool enable)
74 { 74 {
75 RuntimeEnabledFeatures::setAudioOutputDevicesEnabled(enable); 75 RuntimeEnabledFeatures::setAudioOutputDevicesEnabled(enable);
76 } 76 }
77 77
78 void WebRuntimeFeatures::enableBlockDocWriteIfEffectively2G(bool enable)
79 {
80 RuntimeEnabledFeatures::setBlockDocWriteIfEffectively2GEnabled(enable);
81 }
82
78 void WebRuntimeFeatures::enableCanvas2dImageChromium(bool enable) 83 void WebRuntimeFeatures::enableCanvas2dImageChromium(bool enable)
79 { 84 {
80 RuntimeEnabledFeatures::setCanvas2dImageChromiumEnabled(enable); 85 RuntimeEnabledFeatures::setCanvas2dImageChromiumEnabled(enable);
81 } 86 }
82 87
83 void WebRuntimeFeatures::enableColorCorrectRendering(bool enable) 88 void WebRuntimeFeatures::enableColorCorrectRendering(bool enable)
84 { 89 {
85 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled(enable); 90 RuntimeEnabledFeatures::setColorCorrectRenderingEnabled(enable);
86 } 91 }
87 92
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 { 399 {
395 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 400 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
396 } 401 }
397 402
398 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le) 403 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le)
399 { 404 {
400 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able); 405 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able);
401 } 406 }
402 407
403 } // namespace blink 408 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698