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

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

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" Created 3 years, 7 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 settings->SetEncryptedMediaEnabled(prefs.encrypted_media_enabled); 832 settings->SetEncryptedMediaEnabled(prefs.encrypted_media_enabled);
833 settings->SetDOMPasteAllowed(prefs.dom_paste_enabled); 833 settings->SetDOMPasteAllowed(prefs.dom_paste_enabled);
834 settings->SetTextAreasAreResizable(prefs.text_areas_are_resizable); 834 settings->SetTextAreasAreResizable(prefs.text_areas_are_resizable);
835 settings->SetAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); 835 settings->SetAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows);
836 settings->SetDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); 836 settings->SetDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled);
837 settings->SetJavaScriptCanAccessClipboard( 837 settings->SetJavaScriptCanAccessClipboard(
838 prefs.javascript_can_access_clipboard); 838 prefs.javascript_can_access_clipboard);
839 WebRuntimeFeatures::EnableXSLT(prefs.xslt_enabled); 839 WebRuntimeFeatures::EnableXSLT(prefs.xslt_enabled);
840 settings->SetXSSAuditorEnabled(prefs.xss_auditor_enabled); 840 settings->SetXSSAuditorEnabled(prefs.xss_auditor_enabled);
841 settings->SetDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); 841 settings->SetDNSPrefetchingEnabled(prefs.dns_prefetching_enabled);
842 settings->SetDataSaverEnabled(prefs.data_saver_enabled); 842 settings->SetDataSaverFlag(prefs.data_saver_flag);
843 settings->SetLocalStorageEnabled(prefs.local_storage_enabled); 843 settings->SetLocalStorageEnabled(prefs.local_storage_enabled);
844 settings->SetSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); 844 settings->SetSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled);
845 WebRuntimeFeatures::EnableDatabase(prefs.databases_enabled); 845 WebRuntimeFeatures::EnableDatabase(prefs.databases_enabled);
846 settings->SetOfflineWebApplicationCacheEnabled( 846 settings->SetOfflineWebApplicationCacheEnabled(
847 prefs.application_cache_enabled); 847 prefs.application_cache_enabled);
848 settings->SetHistoryEntryRequiresUserGesture( 848 settings->SetHistoryEntryRequiresUserGesture(
849 prefs.history_entry_requires_user_gesture); 849 prefs.history_entry_requires_user_gesture);
850 settings->SetHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); 850 settings->SetHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled);
851 settings->SetCookieEnabled(prefs.cookie_enabled); 851 settings->SetCookieEnabled(prefs.cookie_enabled);
852 settings->SetNavigateOnDragDrop(prefs.navigate_on_drag_drop); 852 settings->SetNavigateOnDragDrop(prefs.navigate_on_drag_drop);
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 input_event.GetCoalescedEventsPointers(), latency_info, 2658 input_event.GetCoalescedEventsPointers(), latency_info,
2659 dispatch_type); 2659 dispatch_type);
2660 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2660 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2661 } 2661 }
2662 idle_user_detector_->ActivityDetected(); 2662 idle_user_detector_->ActivityDetected();
2663 return RenderWidget::HandleInputEvent(input_event, latency_info, 2663 return RenderWidget::HandleInputEvent(input_event, latency_info,
2664 dispatch_type); 2664 dispatch_type);
2665 } 2665 }
2666 2666
2667 } // namespace content 2667 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698