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

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

Issue 14142009: Remove Apple's unused implementation of private browsing from WebCore (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/platform/SchemeRegistry.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 , m_textAutosizingFontScaleFactor(1) 141 , m_textAutosizingFontScaleFactor(1)
142 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP 142 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP
143 , m_textAutosizingWindowSizeOverride(320, 480) 143 , m_textAutosizingWindowSizeOverride(320, 480)
144 , m_textAutosizingEnabled(true) 144 , m_textAutosizingEnabled(true)
145 #else 145 #else
146 , m_textAutosizingEnabled(false) 146 , m_textAutosizingEnabled(false)
147 #endif 147 #endif
148 SETTINGS_INITIALIZER_LIST 148 SETTINGS_INITIALIZER_LIST
149 , m_isJavaEnabled(false) 149 , m_isJavaEnabled(false)
150 , m_loadsImagesAutomatically(false) 150 , m_loadsImagesAutomatically(false)
151 , m_privateBrowsingEnabled(false)
152 , m_areImagesEnabled(true) 151 , m_areImagesEnabled(true)
153 , m_arePluginsEnabled(false) 152 , m_arePluginsEnabled(false)
154 , m_isScriptEnabled(false) 153 , m_isScriptEnabled(false)
155 , m_usesPageCache(false) 154 , m_usesPageCache(false)
156 , m_fontRenderingMode(0) 155 , m_fontRenderingMode(0)
157 , m_isCSSCustomFilterEnabled(false) 156 , m_isCSSCustomFilterEnabled(false)
158 , m_cssStickyPositionEnabled(true) 157 , m_cssStickyPositionEnabled(true)
159 , m_cssVariablesEnabled(false) 158 , m_cssVariablesEnabled(false)
160 , m_tiledBackingStoreEnabled(false) 159 , m_tiledBackingStoreEnabled(false)
161 , m_dnsPrefetchingEnabled(false) 160 , m_dnsPrefetchingEnabled(false)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 356
358 // See comment in setLoadsImagesAutomatically. 357 // See comment in setLoadsImagesAutomatically.
359 m_setImageLoadingSettingsTimer.startOneShot(0); 358 m_setImageLoadingSettingsTimer.startOneShot(0);
360 } 359 }
361 360
362 void Settings::setPluginsEnabled(bool arePluginsEnabled) 361 void Settings::setPluginsEnabled(bool arePluginsEnabled)
363 { 362 {
364 m_arePluginsEnabled = arePluginsEnabled; 363 m_arePluginsEnabled = arePluginsEnabled;
365 } 364 }
366 365
367 void Settings::setPrivateBrowsingEnabled(bool privateBrowsingEnabled)
368 {
369 if (m_privateBrowsingEnabled == privateBrowsingEnabled)
370 return;
371
372 m_privateBrowsingEnabled = privateBrowsingEnabled;
373 m_page->privateBrowsingStateChanged();
374 }
375
376 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation) 366 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation)
377 { 367 {
378 if (m_userStyleSheetLocation == userStyleSheetLocation) 368 if (m_userStyleSheetLocation == userStyleSheetLocation)
379 return; 369 return;
380 370
381 m_userStyleSheetLocation = userStyleSheetLocation; 371 m_userStyleSheetLocation = userStyleSheetLocation;
382 372
383 m_page->userStyleSheetLocationChanged(); 373 m_page->userStyleSheetLocationChanged();
384 } 374 }
385 375
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) 494 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag)
505 { 495 {
506 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) 496 if (m_hiddenPageDOMTimerThrottlingEnabled == flag)
507 return; 497 return;
508 m_hiddenPageDOMTimerThrottlingEnabled = flag; 498 m_hiddenPageDOMTimerThrottlingEnabled = flag;
509 m_page->hiddenPageDOMTimerThrottlingStateChanged(); 499 m_page->hiddenPageDOMTimerThrottlingStateChanged();
510 } 500 }
511 #endif 501 #endif
512 502
513 } // namespace WebCore 503 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/page/Settings.h ('k') | Source/WebCore/platform/SchemeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698