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

Side by Side Diff: third_party/WebKit/public/web/WebContentSettingsClient.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebContentSettingsClient_h 5 #ifndef WebContentSettingsClient_h
6 #define WebContentSettingsClient_h 6 #define WebContentSettingsClient_h
7 7
8 #include "public/platform/WebContentSettingCallbacks.h" 8 #include "public/platform/WebContentSettingCallbacks.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue; } 71 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue; }
72 72
73 // Controls whether enabling Web Components API for this frame. 73 // Controls whether enabling Web Components API for this frame.
74 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; } 74 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; }
75 75
76 // Controls whether to enable MutationEvents for this frame. 76 // Controls whether to enable MutationEvents for this frame.
77 // The common use case of this method is actually to selectively disable Mut ationEvents, 77 // The common use case of this method is actually to selectively disable Mut ationEvents,
78 // but it's been named for consistency with the rest of the interface. 78 // but it's been named for consistency with the rest of the interface.
79 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; } 79 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; }
80 80
81 // Controls whether autoplay is allowed for this frame.
82 virtual bool allowAutoplay(bool defaultValue) { return defaultValue; }
83
81 // Notifies the client that the frame would have instantiated a plugin if pl ugins were enabled. 84 // Notifies the client that the frame would have instantiated a plugin if pl ugins were enabled.
82 virtual void didNotAllowPlugins() { } 85 virtual void didNotAllowPlugins() { }
83 86
84 // Notifies the client that the frame would have executed script if script w ere enabled. 87 // Notifies the client that the frame would have executed script if script w ere enabled.
85 virtual void didNotAllowScript() { } 88 virtual void didNotAllowScript() { }
86 89
87 // Notifies the client that the frame instantiated a keygen element. 90 // Notifies the client that the frame instantiated a keygen element.
88 virtual void didUseKeygen() { } 91 virtual void didUseKeygen() { }
89 92
90 virtual ~WebContentSettingsClient() { } 93 virtual ~WebContentSettingsClient() { }
91 }; 94 };
92 95
93 } // namespace blink 96 } // namespace blink
94 97
95 #endif // WebContentSettingsClient_h 98 #endif // WebContentSettingsClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698