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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void didChangeScrollOffset() override; 137 void didChangeScrollOffset() override;
138 void didUpdateCurrentHistoryItem() override; 138 void didUpdateCurrentHistoryItem() override;
139 void didRemoveAllPendingStylesheet() override; 139 void didRemoveAllPendingStylesheet() override;
140 bool allowScript(bool enabledPerSettings) override; 140 bool allowScript(bool enabledPerSettings) override;
141 bool allowScriptFromSource(bool enabledPerSettings, const KURL& scriptURL) o verride; 141 bool allowScriptFromSource(bool enabledPerSettings, const KURL& scriptURL) o verride;
142 bool allowPlugins(bool enabledPerSettings) override; 142 bool allowPlugins(bool enabledPerSettings) override;
143 bool allowImage(bool enabledPerSettings, const KURL& imageURL) override; 143 bool allowImage(bool enabledPerSettings, const KURL& imageURL) override;
144 bool allowMedia(const KURL& mediaURL) override; 144 bool allowMedia(const KURL& mediaURL) override;
145 bool allowDisplayingInsecureContent(bool enabledPerSettings, const KURL&) ov erride; 145 bool allowDisplayingInsecureContent(bool enabledPerSettings, const KURL&) ov erride;
146 bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOrigin*, c onst KURL&) override; 146 bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOrigin*, c onst KURL&) override;
147 bool allowAutoplay(bool defaultValue) override;
147 void didNotAllowScript() override; 148 void didNotAllowScript() override;
148 void didNotAllowPlugins() override; 149 void didNotAllowPlugins() override;
149 void didUseKeygen() override; 150 void didUseKeygen() override;
150 151
151 WebCookieJar* cookieJar() const override; 152 WebCookieJar* cookieJar() const override;
152 bool willCheckAndDispatchMessageEvent(SecurityOrigin* target, MessageEvent*, LocalFrame* sourceFrame) const override; 153 bool willCheckAndDispatchMessageEvent(SecurityOrigin* target, MessageEvent*, LocalFrame* sourceFrame) const override;
153 void frameFocused() const override; 154 void frameFocused() const override;
154 void didChangeName(const String& name, const String& uniqueName) override; 155 void didChangeName(const String& name, const String& uniqueName) override;
155 void didEnforceStrictMixedContentChecking() override; 156 void didEnforceStrictMixedContentChecking() override;
156 void didUpdateToUniqueOrigin() override; 157 void didUpdateToUniqueOrigin() override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Member<WebLocalFrameImpl> m_webFrame; 195 Member<WebLocalFrameImpl> m_webFrame;
195 196
196 String m_userAgent; 197 String m_userAgent;
197 }; 198 };
198 199
199 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 200 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
200 201
201 } // namespace blink 202 } // namespace blink
202 203
203 #endif 204 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698