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

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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 #endif 130 #endif
131 #if OS(WINDOWS) 131 #if OS(WINDOWS)
132 static const bool defaultSelectTrailingWhitespaceEnabled = true; 132 static const bool defaultSelectTrailingWhitespaceEnabled = true;
133 #else 133 #else
134 static const bool defaultSelectTrailingWhitespaceEnabled = false; 134 static const bool defaultSelectTrailingWhitespaceEnabled = false;
135 #endif 135 #endif
136 136
137 Settings::Settings(Page* page) 137 Settings::Settings(Page* page)
138 : m_page(0) 138 : m_page(0)
139 , m_mediaTypeOverride("screen") 139 , m_mediaTypeOverride("screen")
140 , m_storageBlockingPolicy(SecurityOrigin::AllowAllStorage)
141 , m_textAutosizingFontScaleFactor(1) 140 , m_textAutosizingFontScaleFactor(1)
142 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP 141 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP
143 , m_textAutosizingWindowSizeOverride(320, 480) 142 , m_textAutosizingWindowSizeOverride(320, 480)
144 , m_textAutosizingEnabled(true) 143 , m_textAutosizingEnabled(true)
145 #else 144 #else
146 , m_textAutosizingEnabled(false) 145 , m_textAutosizingEnabled(false)
147 #endif 146 #endif
148 SETTINGS_INITIALIZER_LIST 147 SETTINGS_INITIALIZER_LIST
149 , m_isJavaEnabled(false) 148 , m_isJavaEnabled(false)
150 , m_loadsImagesAutomatically(false) 149 , m_loadsImagesAutomatically(false)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 448
450 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) 449 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled)
451 { 450 {
452 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) 451 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled)
453 return; 452 return;
454 453
455 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; 454 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled;
456 m_page->dnsPrefetchingStateChanged(); 455 m_page->dnsPrefetchingStateChanged();
457 } 456 }
458 457
459 void Settings::setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy en abled)
460 {
461 if (m_storageBlockingPolicy == enabled)
462 return;
463
464 m_storageBlockingPolicy = enabled;
465 m_page->storageBlockingStateChanged();
466 }
467
468 void Settings::setTiledBackingStoreEnabled(bool enabled) 458 void Settings::setTiledBackingStoreEnabled(bool enabled)
469 { 459 {
470 m_tiledBackingStoreEnabled = enabled; 460 m_tiledBackingStoreEnabled = enabled;
471 } 461 }
472 462
473 void Settings::setMockScrollbarsEnabled(bool flag) 463 void Settings::setMockScrollbarsEnabled(bool flag)
474 { 464 {
475 gMockScrollbarsEnabled = flag; 465 gMockScrollbarsEnabled = flag;
476 } 466 }
477 467
(...skipping 16 matching lines...) Expand all
494 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) 484 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag)
495 { 485 {
496 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) 486 if (m_hiddenPageDOMTimerThrottlingEnabled == flag)
497 return; 487 return;
498 m_hiddenPageDOMTimerThrottlingEnabled = flag; 488 m_hiddenPageDOMTimerThrottlingEnabled = flag;
499 m_page->hiddenPageDOMTimerThrottlingStateChanged(); 489 m_page->hiddenPageDOMTimerThrottlingStateChanged();
500 } 490 }
501 #endif 491 #endif
502 492
503 } // namespace WebCore 493 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698