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

Side by Side Diff: content/public/common/web_preferences.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
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/public/common/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 context_menu_on_mouse_up(true), 73 context_menu_on_mouse_up(true),
74 #else 74 #else
75 context_menu_on_mouse_up(false), 75 context_menu_on_mouse_up(false),
76 #endif 76 #endif
77 javascript_enabled(true), 77 javascript_enabled(true),
78 web_security_enabled(true), 78 web_security_enabled(true),
79 javascript_can_open_windows_automatically(true), 79 javascript_can_open_windows_automatically(true),
80 loads_images_automatically(true), 80 loads_images_automatically(true),
81 images_enabled(true), 81 images_enabled(true),
82 plugins_enabled(true), 82 plugins_enabled(true),
83 encrypted_media_enabled(true),
83 dom_paste_enabled(false), // enables execCommand("paste") 84 dom_paste_enabled(false), // enables execCommand("paste")
84 shrinks_standalone_images_to_fit(true), 85 shrinks_standalone_images_to_fit(true),
85 text_areas_are_resizable(true), 86 text_areas_are_resizable(true),
86 allow_scripts_to_close_windows(false), 87 allow_scripts_to_close_windows(false),
87 remote_fonts_enabled(true), 88 remote_fonts_enabled(true),
88 javascript_can_access_clipboard(false), 89 javascript_can_access_clipboard(false),
89 xslt_enabled(true), 90 xslt_enabled(true),
90 xss_auditor_enabled(true), 91 xss_auditor_enabled(true),
91 dns_prefetching_enabled(true), 92 dns_prefetching_enabled(true),
92 data_saver_enabled(false), 93 data_saver_enabled(false),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 pictograph_font_family_map[kCommonScript] = 238 pictograph_font_family_map[kCommonScript] =
238 base::ASCIIToUTF16("Times New Roman"); 239 base::ASCIIToUTF16("Times New Roman");
239 } 240 }
240 241
241 WebPreferences::WebPreferences(const WebPreferences& other) = default; 242 WebPreferences::WebPreferences(const WebPreferences& other) = default;
242 243
243 WebPreferences::~WebPreferences() { 244 WebPreferences::~WebPreferences() {
244 } 245 }
245 246
246 } // namespace content 247 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698