| OLD | NEW |
| 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); | 970 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); |
| 971 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); | 971 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); |
| 972 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); | 972 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); |
| 973 settings->setDataSaverEnabled(prefs.data_saver_enabled); | 973 settings->setDataSaverEnabled(prefs.data_saver_enabled); |
| 974 settings->setLocalStorageEnabled(prefs.local_storage_enabled); | 974 settings->setLocalStorageEnabled(prefs.local_storage_enabled); |
| 975 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); | 975 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); |
| 976 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled); | 976 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled); |
| 977 settings->setOfflineWebApplicationCacheEnabled( | 977 settings->setOfflineWebApplicationCacheEnabled( |
| 978 prefs.application_cache_enabled); | 978 prefs.application_cache_enabled); |
| 979 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled); | 979 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled); |
| 980 settings->setHistoryEntryRequiresUserGesture( |
| 981 prefs.history_entry_requires_user_gesture); |
| 980 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); | 982 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); |
| 981 settings->setCookieEnabled(prefs.cookie_enabled); | 983 settings->setCookieEnabled(prefs.cookie_enabled); |
| 982 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop); | 984 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop); |
| 983 | 985 |
| 984 // By default, allow_universal_access_from_file_urls is set to false and thus | 986 // By default, allow_universal_access_from_file_urls is set to false and thus |
| 985 // we mitigate attacks from local HTML files by not granting file:// URLs | 987 // we mitigate attacks from local HTML files by not granting file:// URLs |
| 986 // universal access. Only test shell will enable this. | 988 // universal access. Only test shell will enable this. |
| 987 settings->setAllowUniversalAccessFromFileURLs( | 989 settings->setAllowUniversalAccessFromFileURLs( |
| 988 prefs.allow_universal_access_from_file_urls); | 990 prefs.allow_universal_access_from_file_urls); |
| 989 settings->setAllowFileAccessFromFileURLs( | 991 settings->setAllowFileAccessFromFileURLs( |
| (...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 return render_frame->focused_pepper_plugin(); | 3015 return render_frame->focused_pepper_plugin(); |
| 3014 } | 3016 } |
| 3015 frame = frame->traverseNext(false); | 3017 frame = frame->traverseNext(false); |
| 3016 } | 3018 } |
| 3017 | 3019 |
| 3018 return nullptr; | 3020 return nullptr; |
| 3019 } | 3021 } |
| 3020 #endif | 3022 #endif |
| 3021 | 3023 |
| 3022 } // namespace content | 3024 } // namespace content |
| OLD | NEW |