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

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

Issue 1906533002: Add 'autoplay' content settings and expose it to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 virtual void didUpdateCurrentHistoryItem() { } 189 virtual void didUpdateCurrentHistoryItem() { }
190 virtual void didRemoveAllPendingStylesheet() { } 190 virtual void didRemoveAllPendingStylesheet() { }
191 191
192 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; } 192 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting s; }
193 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; } 193 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r eturn enabledPerSettings; }
194 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; } 194 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin gs; }
195 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; } 195 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl edPerSettings; }
196 virtual bool allowMedia(const KURL&) { return true; } 196 virtual bool allowMedia(const KURL&) { return true; }
197 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K URL&) { return enabledPerSettings; } 197 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K URL&) { return enabledPerSettings; }
198 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; } 198 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr igin*, const KURL&) { return enabledPerSettings; }
199 virtual bool allowAutoplay(bool defaultValue) { return defaultValue; }
199 200
200 // This callback notifies the client that the frame was about to run 201 // This callback notifies the client that the frame was about to run
201 // JavaScript but did not because allowScript returned false. We 202 // JavaScript but did not because allowScript returned false. We
202 // have a separate callback here because there are a number of places 203 // have a separate callback here because there are a number of places
203 // that need to know if JavaScript is enabled but are not necessarily 204 // that need to know if JavaScript is enabled but are not necessarily
204 // preparing to execute script. 205 // preparing to execute script.
205 virtual void didNotAllowScript() { } 206 virtual void didNotAllowScript() { }
206 // This callback is similar, but for plugins. 207 // This callback is similar, but for plugins.
207 virtual void didNotAllowPlugins() { } 208 virtual void didNotAllowPlugins() { }
208 209
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 UnloadHandler, 259 UnloadHandler,
259 }; 260 };
260 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 261 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
261 262
262 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 263 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
263 }; 264 };
264 265
265 } // namespace blink 266 } // namespace blink
266 267
267 #endif // FrameLoaderClient_h 268 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698