Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 1414853003: Add options for audio/video autoplay to chrome://settings/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 156 matching lines...)
167 167
168 virtual void didChangeScrollOffset() { } 168 virtual void didChangeScrollOffset() { }
169 virtual void didUpdateCurrentHistoryItem() { } 169 virtual void didUpdateCurrentHistoryItem() { }
170 virtual void didRemoveAllPendingStylesheet() { } 170 virtual void didRemoveAllPendingStylesheet() { }
171 171
172 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; } 172 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; }
173 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; } 173 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; }
174 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; } 174 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; }
175 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; } 175 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; }
176 virtual bool allowMedia(const KURL&) { return true; } 176 virtual bool allowMedia(const KURL&) { return true; }
177 virtual bool allowMediaAutoplay(bool hidden) { return true; }
177 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Securit yOrigin*, const KURL&) { return enabledPerSettings; } 178 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Securit yOrigin*, const KURL&) { return enabledPerSettings; }
178 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; } 179 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; }
179 180
180 // This callback notifies the client that the frame was about to run 181 // This callback notifies the client that the frame was about to run
181 // JavaScript but did not because allowScript returned false. We 182 // JavaScript but did not because allowScript returned false. We
182 // have a separate callback here because there are a number of places 183 // have a separate callback here because there are a number of places
183 // that need to know if JavaScript is enabled but are not necessarily 184 // that need to know if JavaScript is enabled but are not necessarily
184 // preparing to execute script. 185 // preparing to execute script.
185 virtual void didNotAllowScript() { } 186 virtual void didNotAllowScript() { }
186 // This callback is similar, but for plugins. 187 // This callback is similar, but for plugins.
(...skipping 46 matching lines...)
233 BeforeUnloadHandler, 234 BeforeUnloadHandler,
234 UnloadHandler, 235 UnloadHandler,
235 }; 236 };
236 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 237 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
237 238
238 }; 239 };
239 240
240 } // namespace blink 241 } // namespace blink
241 242
242 #endif // FrameLoaderClient_h 243 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine