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

Side by Side Diff: Source/web/FrameLoaderClientImpl.h

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better rebase. Created 6 years, 6 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const Vector<WTF::String>& paramNames, 125 const Vector<WTF::String>& paramNames,
126 const Vector<WTF::String>& paramValues) OVERRIDE; 126 const Vector<WTF::String>& paramValues) OVERRIDE;
127 virtual WebCore::ObjectContentType objectContentType( 127 virtual WebCore::ObjectContentType objectContentType(
128 const WebCore::KURL&, const WTF::String& mimeType, bool shouldPreferPlug InsForImages) OVERRIDE; 128 const WebCore::KURL&, const WTF::String& mimeType, bool shouldPreferPlug InsForImages) OVERRIDE;
129 virtual void didChangeScrollOffset() OVERRIDE; 129 virtual void didChangeScrollOffset() OVERRIDE;
130 virtual void didUpdateCurrentHistoryItem() OVERRIDE; 130 virtual void didUpdateCurrentHistoryItem() OVERRIDE;
131 virtual bool allowScript(bool enabledPerSettings) OVERRIDE; 131 virtual bool allowScript(bool enabledPerSettings) OVERRIDE;
132 virtual bool allowScriptFromSource(bool enabledPerSettings, const WebCore::K URL& scriptURL) OVERRIDE; 132 virtual bool allowScriptFromSource(bool enabledPerSettings, const WebCore::K URL& scriptURL) OVERRIDE;
133 virtual bool allowPlugins(bool enabledPerSettings) OVERRIDE; 133 virtual bool allowPlugins(bool enabledPerSettings) OVERRIDE;
134 virtual bool allowImage(bool enabledPerSettings, const WebCore::KURL& imageU RL) OVERRIDE; 134 virtual bool allowImage(bool enabledPerSettings, const WebCore::KURL& imageU RL) OVERRIDE;
135 virtual bool allowMedia(const WebCore::KURL& mediaURL) OVERRIDE;
135 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, WebCore ::SecurityOrigin*, const WebCore::KURL&) OVERRIDE; 136 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, WebCore ::SecurityOrigin*, const WebCore::KURL&) OVERRIDE;
136 virtual bool allowRunningInsecureContent(bool enabledPerSettings, WebCore::S ecurityOrigin*, const WebCore::KURL&) OVERRIDE; 137 virtual bool allowRunningInsecureContent(bool enabledPerSettings, WebCore::S ecurityOrigin*, const WebCore::KURL&) OVERRIDE;
137 virtual void didNotAllowScript() OVERRIDE; 138 virtual void didNotAllowScript() OVERRIDE;
138 virtual void didNotAllowPlugins() OVERRIDE; 139 virtual void didNotAllowPlugins() OVERRIDE;
139 140
140 virtual WebCookieJar* cookieJar() const OVERRIDE; 141 virtual WebCookieJar* cookieJar() const OVERRIDE;
141 virtual bool willCheckAndDispatchMessageEvent(WebCore::SecurityOrigin* targe t, WebCore::MessageEvent*) const OVERRIDE; 142 virtual bool willCheckAndDispatchMessageEvent(WebCore::SecurityOrigin* targe t, WebCore::MessageEvent*) const OVERRIDE;
142 virtual void didChangeName(const String&) OVERRIDE; 143 virtual void didChangeName(const String&) OVERRIDE;
143 144
144 virtual void dispatchWillOpenSocketStream(WebCore::SocketStreamHandle*) OVER RIDE; 145 virtual void dispatchWillOpenSocketStream(WebCore::SocketStreamHandle*) OVER RIDE;
(...skipping 25 matching lines...) Expand all
170 // The WebFrame that owns this object and manages its lifetime. Therefore, 171 // The WebFrame that owns this object and manages its lifetime. Therefore,
171 // the web frame object is guaranteed to exist. 172 // the web frame object is guaranteed to exist.
172 WebLocalFrameImpl* m_webFrame; 173 WebLocalFrameImpl* m_webFrame;
173 }; 174 };
174 175
175 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 176 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl());
176 177
177 } // namespace blink 178 } // namespace blink
178 179
179 #endif 180 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698