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

Side by Side Diff: Source/core/testing/InternalSettings.h

Issue 131103003: CSP: Add a mechanism to disable CSP 1.1 for layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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) 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
47 class Backup { 47 class Backup {
48 public: 48 public:
49 explicit Backup(Settings*); 49 explicit Backup(Settings*);
50 void restoreTo(Settings*); 50 void restoreTo(Settings*);
51 51
52 bool m_originalCSSExclusionsEnabled; 52 bool m_originalCSSExclusionsEnabled;
53 bool m_originalAuthorShadowDOMForAnyElementEnabled; 53 bool m_originalAuthorShadowDOMForAnyElementEnabled;
54 bool m_originalExperimentalWebSocketEnabled; 54 bool m_originalExperimentalWebSocketEnabled;
55 bool m_originalStyleScoped; 55 bool m_originalStyleScoped;
56 bool m_originalCSP;
56 bool m_originalOverlayScrollbarsEnabled; 57 bool m_originalOverlayScrollbarsEnabled;
57 EditingBehaviorType m_originalEditingBehavior; 58 EditingBehaviorType m_originalEditingBehavior;
58 bool m_originalTextAutosizingEnabled; 59 bool m_originalTextAutosizingEnabled;
59 IntSize m_originalTextAutosizingWindowSizeOverride; 60 IntSize m_originalTextAutosizingWindowSizeOverride;
60 float m_originalAccessibilityFontScaleFactor; 61 float m_originalAccessibilityFontScaleFactor;
61 String m_originalMediaTypeOverride; 62 String m_originalMediaTypeOverride;
62 bool m_originalMockScrollbarsEnabled; 63 bool m_originalMockScrollbarsEnabled;
63 bool m_langAttributeAwareFormControlUIEnabled; 64 bool m_langAttributeAwareFormControlUIEnabled;
64 bool m_imagesEnabled; 65 bool m_imagesEnabled;
65 bool m_shouldDisplaySubtitles; 66 bool m_shouldDisplaySubtitles;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 112
112 // FIXME: The following are RuntimeEnabledFeatures and likely 113 // FIXME: The following are RuntimeEnabledFeatures and likely
113 // cannot be changed after process start. These setters should 114 // cannot be changed after process start. These setters should
114 // be removed or moved onto internals.runtimeFlags: 115 // be removed or moved onto internals.runtimeFlags:
115 void setAuthorShadowDOMForAnyElementEnabled(bool); 116 void setAuthorShadowDOMForAnyElementEnabled(bool);
116 void setCSSExclusionsEnabled(bool); 117 void setCSSExclusionsEnabled(bool);
117 void setExperimentalWebSocketEnabled(bool); 118 void setExperimentalWebSocketEnabled(bool);
118 void setLangAttributeAwareFormControlUIEnabled(bool); 119 void setLangAttributeAwareFormControlUIEnabled(bool);
119 void setOverlayScrollbarsEnabled(bool); 120 void setOverlayScrollbarsEnabled(bool);
120 void setStyleScopedEnabled(bool); 121 void setStyleScopedEnabled(bool);
122 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
121 123
122 private: 124 private:
123 explicit InternalSettings(Page*); 125 explicit InternalSettings(Page*);
124 126
125 Settings* settings() const; 127 Settings* settings() const;
126 Page* page() const { return m_page; } 128 Page* page() const { return m_page; }
127 static const char* supplementName(); 129 static const char* supplementName();
128 130
129 Page* m_page; 131 Page* m_page;
130 Backup m_backup; 132 Backup m_backup;
131 }; 133 };
132 134
133 } // namespace WebCore 135 } // namespace WebCore
134 136
135 #endif 137 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698