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

Side by Side Diff: third_party/WebKit/Source/web/WebSettingsImpl.cpp

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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 void WebSettingsImpl::SetTextTrackTextSize(const WebString& size) { 404 void WebSettingsImpl::SetTextTrackTextSize(const WebString& size) {
405 settings_->SetTextTrackTextSize(size); 405 settings_->SetTextTrackTextSize(size);
406 } 406 }
407 407
408 void WebSettingsImpl::SetDNSPrefetchingEnabled(bool enabled) { 408 void WebSettingsImpl::SetDNSPrefetchingEnabled(bool enabled) {
409 settings_->SetDNSPrefetchingEnabled(enabled); 409 settings_->SetDNSPrefetchingEnabled(enabled);
410 } 410 }
411 411
412 void WebSettingsImpl::SetDataSaverEnabled(bool enabled) { 412 void WebSettingsImpl::SetDataSaverFlag(WebDataSaverFlag data_saver_flag) {
413 settings_->SetDataSaverEnabled(enabled); 413 settings_->SetDataSaverFlag(data_saver_flag);
414 } 414 }
415 415
416 void WebSettingsImpl::SetLocalStorageEnabled(bool enabled) { 416 void WebSettingsImpl::SetLocalStorageEnabled(bool enabled) {
417 settings_->SetLocalStorageEnabled(enabled); 417 settings_->SetLocalStorageEnabled(enabled);
418 } 418 }
419 419
420 void WebSettingsImpl::SetMainFrameClipsContent(bool enabled) { 420 void WebSettingsImpl::SetMainFrameClipsContent(bool enabled) {
421 settings_->SetMainFrameClipsContent(enabled); 421 settings_->SetMainFrameClipsContent(enabled);
422 } 422 }
423 423
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 void WebSettingsImpl::SetMediaControlsEnabled(bool enabled) { 726 void WebSettingsImpl::SetMediaControlsEnabled(bool enabled) {
727 settings_->SetMediaControlsEnabled(enabled); 727 settings_->SetMediaControlsEnabled(enabled);
728 } 728 }
729 729
730 void WebSettingsImpl::SetDoNotUpdateSelectionOnMutatingSelectionRange( 730 void WebSettingsImpl::SetDoNotUpdateSelectionOnMutatingSelectionRange(
731 bool enabled) { 731 bool enabled) {
732 settings_->SetDoNotUpdateSelectionOnMutatingSelectionRange(enabled); 732 settings_->SetDoNotUpdateSelectionOnMutatingSelectionRange(enabled);
733 } 733 }
734 734
735 } // namespace blink 735 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698