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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2676633006: media: Add a web preference to enable encrypted media (Closed)
Patch Set: use a new pref 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 settings->setMinimumLogicalFontSize(prefs.minimum_logical_font_size); 819 settings->setMinimumLogicalFontSize(prefs.minimum_logical_font_size);
820 settings->setDefaultTextEncodingName( 820 settings->setDefaultTextEncodingName(
821 WebString::fromASCII(prefs.default_encoding)); 821 WebString::fromASCII(prefs.default_encoding));
822 settings->setJavaScriptEnabled(prefs.javascript_enabled); 822 settings->setJavaScriptEnabled(prefs.javascript_enabled);
823 settings->setWebSecurityEnabled(prefs.web_security_enabled); 823 settings->setWebSecurityEnabled(prefs.web_security_enabled);
824 settings->setJavaScriptCanOpenWindowsAutomatically( 824 settings->setJavaScriptCanOpenWindowsAutomatically(
825 prefs.javascript_can_open_windows_automatically); 825 prefs.javascript_can_open_windows_automatically);
826 settings->setLoadsImagesAutomatically(prefs.loads_images_automatically); 826 settings->setLoadsImagesAutomatically(prefs.loads_images_automatically);
827 settings->setImagesEnabled(prefs.images_enabled); 827 settings->setImagesEnabled(prefs.images_enabled);
828 settings->setPluginsEnabled(prefs.plugins_enabled); 828 settings->setPluginsEnabled(prefs.plugins_enabled);
829 settings->setEncryptedMediaEnabled(prefs.encrypted_media_enabled);
829 settings->setDOMPasteAllowed(prefs.dom_paste_enabled); 830 settings->setDOMPasteAllowed(prefs.dom_paste_enabled);
830 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable); 831 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable);
831 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); 832 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows);
832 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); 833 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled);
833 settings->setJavaScriptCanAccessClipboard( 834 settings->setJavaScriptCanAccessClipboard(
834 prefs.javascript_can_access_clipboard); 835 prefs.javascript_can_access_clipboard);
835 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); 836 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled);
836 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); 837 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled);
837 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); 838 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled);
838 settings->setDataSaverEnabled(prefs.data_saver_enabled); 839 settings->setDataSaverEnabled(prefs.data_saver_enabled);
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2689 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); 2690 INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
2690 } 2691 }
2691 2692
2692 std::unique_ptr<InputEventAck> ack( 2693 std::unique_ptr<InputEventAck> ack(
2693 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), 2694 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(),
2694 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); 2695 INPUT_EVENT_ACK_STATE_NOT_CONSUMED));
2695 OnInputEventAck(std::move(ack)); 2696 OnInputEventAck(std::move(ack));
2696 } 2697 }
2697 2698
2698 } // namespace content 2699 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/frame/Settings.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698