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

Side by Side Diff: Source/WebCore/testing/InternalSettings.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/testing/InternalSettings.h ('k') | Source/WebCore/testing/InternalSettings.idl » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return captionPreferences->userPrefersTextDescriptions(); 396 return captionPreferences->userPrefersTextDescriptions();
397 397
398 ec = SYNTAX_ERR; 398 ec = SYNTAX_ERR;
399 return false; 399 return false;
400 #else 400 #else
401 UNUSED_PARAM(kind); 401 UNUSED_PARAM(kind);
402 return false; 402 return false;
403 #endif 403 #endif
404 } 404 }
405 405
406 void InternalSettings::setStorageBlockingPolicy(const String& mode, ExceptionCod e& ec)
407 {
408 InternalSettingsGuardForSettings();
409
410 if (mode == "AllowAll")
411 settings()->setStorageBlockingPolicy(SecurityOrigin::AllowAllStorage);
412 else if (mode == "BlockThirdParty")
413 settings()->setStorageBlockingPolicy(SecurityOrigin::BlockThirdPartyStor age);
414 else if (mode == "BlockAll")
415 settings()->setStorageBlockingPolicy(SecurityOrigin::BlockAllStorage);
416 else
417 ec = SYNTAX_ERR;
418 }
419
420 void InternalSettings::setLangAttributeAwareFormControlUIEnabled(bool enabled) 406 void InternalSettings::setLangAttributeAwareFormControlUIEnabled(bool enabled)
421 { 407 {
422 RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(enabled); 408 RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(enabled);
423 } 409 }
424 410
425 void InternalSettings::setImagesEnabled(bool enabled, ExceptionCode& ec) 411 void InternalSettings::setImagesEnabled(bool enabled, ExceptionCode& ec)
426 { 412 {
427 InternalSettingsGuardForSettings(); 413 InternalSettingsGuardForSettings();
428 settings()->setImagesEnabled(enabled); 414 settings()->setImagesEnabled(enabled);
429 } 415 }
(...skipping 10 matching lines...) Expand all
440 settings()->setDefaultVideoPosterURL(url); 426 settings()->setDefaultVideoPosterURL(url);
441 } 427 }
442 428
443 void InternalSettings::setTimeWithoutMouseMovementBeforeHidingControls(double ti me, ExceptionCode& ec) 429 void InternalSettings::setTimeWithoutMouseMovementBeforeHidingControls(double ti me, ExceptionCode& ec)
444 { 430 {
445 InternalSettingsGuardForSettings(); 431 InternalSettingsGuardForSettings();
446 settings()->setTimeWithoutMouseMovementBeforeHidingControls(time); 432 settings()->setTimeWithoutMouseMovementBeforeHidingControls(time);
447 } 433 }
448 434
449 } 435 }
OLDNEW
« no previous file with comments | « Source/WebCore/testing/InternalSettings.h ('k') | Source/WebCore/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698