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

Side by Side Diff: Source/core/page/Settings.h

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename "video" to "media". Created 7 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void setScriptEnabled(bool); 120 void setScriptEnabled(bool);
121 121
122 SETTINGS_GETTERS_AND_SETTERS 122 SETTINGS_GETTERS_AND_SETTERS
123 123
124 void setJavaEnabled(bool); 124 void setJavaEnabled(bool);
125 bool isJavaEnabled() const { return m_isJavaEnabled; } 125 bool isJavaEnabled() const { return m_isJavaEnabled; }
126 126
127 void setImagesEnabled(bool); 127 void setImagesEnabled(bool);
128 bool areImagesEnabled() const { return m_areImagesEnabled; } 128 bool areImagesEnabled() const { return m_areImagesEnabled; }
129 129
130 void setMediaLoadingEnabled(bool);
131 bool isMediaLoadingEnabled() const { return m_isMediaLoadingEnabled; }
132
130 void setPluginsEnabled(bool); 133 void setPluginsEnabled(bool);
131 bool arePluginsEnabled() const { return m_arePluginsEnabled; } 134 bool arePluginsEnabled() const { return m_arePluginsEnabled; }
132 135
133 void setDNSPrefetchingEnabled(bool); 136 void setDNSPrefetchingEnabled(bool);
134 bool dnsPrefetchingEnabled() const { return m_dnsPrefetchingEnabled; } 137 bool dnsPrefetchingEnabled() const { return m_dnsPrefetchingEnabled; }
135 138
136 void setUserStyleSheetLocation(const KURL&); 139 void setUserStyleSheetLocation(const KURL&);
137 const KURL& userStyleSheetLocation() const { return m_userStyleSheetLocation ; } 140 const KURL& userStyleSheetLocation() const { return m_userStyleSheetLocation ; }
138 141
139 static void setMockScrollbarsEnabled(bool flag); 142 static void setMockScrollbarsEnabled(bool flag);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 bool m_textAutosizingEnabled : 1; 175 bool m_textAutosizingEnabled : 1;
173 bool m_useWideViewport : 1; 176 bool m_useWideViewport : 1;
174 bool m_loadWithOverviewMode : 1; 177 bool m_loadWithOverviewMode : 1;
175 178
176 SETTINGS_MEMBER_VARIABLES 179 SETTINGS_MEMBER_VARIABLES
177 180
178 bool m_isJavaEnabled : 1; 181 bool m_isJavaEnabled : 1;
179 bool m_loadsImagesAutomatically : 1; 182 bool m_loadsImagesAutomatically : 1;
180 bool m_areImagesEnabled : 1; 183 bool m_areImagesEnabled : 1;
181 bool m_arePluginsEnabled : 1; 184 bool m_arePluginsEnabled : 1;
185 bool m_isMediaLoadingEnabled : 1;
jochen (gone - plz use gerrit) 2013/10/22 08:25:31 i wouldn't introduce a new setting for this.
pwnall-personal 2013/10/22 11:56:18 Done. Removed. Thank you!!
182 bool m_isScriptEnabled : 1; 186 bool m_isScriptEnabled : 1;
183 bool m_dnsPrefetchingEnabled : 1; 187 bool m_dnsPrefetchingEnabled : 1;
184 188
185 bool m_touchEventEmulationEnabled : 1; 189 bool m_touchEventEmulationEnabled : 1;
186 bool m_openGLMultisamplingEnabled : 1; 190 bool m_openGLMultisamplingEnabled : 1;
187 bool m_viewportEnabled : 1; 191 bool m_viewportEnabled : 1;
188 192
189 // FIXME: This is a temporary flag and should be removed once accelerated 193 // FIXME: This is a temporary flag and should be removed once accelerated
190 // overflow scroll is ready (crbug.com/254111). 194 // overflow scroll is ready (crbug.com/254111).
191 bool m_compositorDrivenAcceleratedScrollingEnabled : 1; 195 bool m_compositorDrivenAcceleratedScrollingEnabled : 1;
192 196
193 Timer<Settings> m_setImageLoadingSettingsTimer; 197 Timer<Settings> m_setImageLoadingSettingsTimer;
194 void imageLoadingSettingsTimerFired(Timer<Settings>*); 198 void imageLoadingSettingsTimerFired(Timer<Settings>*);
195 }; 199 };
196 200
197 } // namespace WebCore 201 } // namespace WebCore
198 202
199 #endif // Settings_h 203 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698