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

Side by Side Diff: Source/WebCore/page/Settings.cpp

Issue 14089003: Remove storageBlockingPolicy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/page/Settings.h ('k') | Source/WebCore/plugins/PluginViewBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed.
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #endif 126 #endif
127 #if OS(WINDOWS) 127 #if OS(WINDOWS)
128 static const bool defaultSelectTrailingWhitespaceEnabled = true; 128 static const bool defaultSelectTrailingWhitespaceEnabled = true;
129 #else 129 #else
130 static const bool defaultSelectTrailingWhitespaceEnabled = false; 130 static const bool defaultSelectTrailingWhitespaceEnabled = false;
131 #endif 131 #endif
132 132
133 Settings::Settings(Page* page) 133 Settings::Settings(Page* page)
134 : m_page(0) 134 : m_page(0)
135 , m_mediaTypeOverride("screen") 135 , m_mediaTypeOverride("screen")
136 , m_storageBlockingPolicy(SecurityOrigin::AllowAllStorage)
137 , m_textAutosizingFontScaleFactor(1) 136 , m_textAutosizingFontScaleFactor(1)
138 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP 137 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP
139 , m_textAutosizingWindowSizeOverride(320, 480) 138 , m_textAutosizingWindowSizeOverride(320, 480)
140 , m_textAutosizingEnabled(true) 139 , m_textAutosizingEnabled(true)
141 #else 140 #else
142 , m_textAutosizingEnabled(false) 141 , m_textAutosizingEnabled(false)
143 #endif 142 #endif
144 SETTINGS_INITIALIZER_LIST 143 SETTINGS_INITIALIZER_LIST
145 , m_isJavaEnabled(false) 144 , m_isJavaEnabled(false)
146 , m_loadsImagesAutomatically(false) 145 , m_loadsImagesAutomatically(false)
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 436
438 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) 437 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled)
439 { 438 {
440 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) 439 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled)
441 return; 440 return;
442 441
443 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; 442 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled;
444 m_page->dnsPrefetchingStateChanged(); 443 m_page->dnsPrefetchingStateChanged();
445 } 444 }
446 445
447 void Settings::setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy en abled)
448 {
449 if (m_storageBlockingPolicy == enabled)
450 return;
451
452 m_storageBlockingPolicy = enabled;
453 m_page->storageBlockingStateChanged();
454 }
455
456 void Settings::setMockScrollbarsEnabled(bool flag) 446 void Settings::setMockScrollbarsEnabled(bool flag)
457 { 447 {
458 gMockScrollbarsEnabled = flag; 448 gMockScrollbarsEnabled = flag;
459 } 449 }
460 450
461 bool Settings::mockScrollbarsEnabled() 451 bool Settings::mockScrollbarsEnabled()
462 { 452 {
463 return gMockScrollbarsEnabled; 453 return gMockScrollbarsEnabled;
464 } 454 }
465 455
(...skipping 11 matching lines...) Expand all
477 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) 467 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag)
478 { 468 {
479 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) 469 if (m_hiddenPageDOMTimerThrottlingEnabled == flag)
480 return; 470 return;
481 m_hiddenPageDOMTimerThrottlingEnabled = flag; 471 m_hiddenPageDOMTimerThrottlingEnabled = flag;
482 m_page->hiddenPageDOMTimerThrottlingStateChanged(); 472 m_page->hiddenPageDOMTimerThrottlingStateChanged();
483 } 473 }
484 #endif 474 #endif
485 475
486 } // namespace WebCore 476 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/page/Settings.h ('k') | Source/WebCore/plugins/PluginViewBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698