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

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: Rebased. 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
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const Vector<WTF::String>& paramNames, 126 const Vector<WTF::String>& paramNames,
127 const Vector<WTF::String>& paramValues) OVERRIDE; 127 const Vector<WTF::String>& paramValues) OVERRIDE;
128 virtual WebCore::ObjectContentType objectContentType( 128 virtual WebCore::ObjectContentType objectContentType(
129 const WebCore::KURL&, const WTF::String& mimeType, bool shouldPreferPlug InsForImages) OVERRIDE; 129 const WebCore::KURL&, const WTF::String& mimeType, bool shouldPreferPlug InsForImages) OVERRIDE;
130 virtual void didChangeScrollOffset() OVERRIDE; 130 virtual void didChangeScrollOffset() OVERRIDE;
131 virtual void didUpdateCurrentHistoryItem() OVERRIDE; 131 virtual void didUpdateCurrentHistoryItem() OVERRIDE;
132 virtual bool allowScript(bool enabledPerSettings) OVERRIDE; 132 virtual bool allowScript(bool enabledPerSettings) OVERRIDE;
133 virtual bool allowScriptFromSource(bool enabledPerSettings, const WebCore::K URL& scriptURL) OVERRIDE; 133 virtual bool allowScriptFromSource(bool enabledPerSettings, const WebCore::K URL& scriptURL) OVERRIDE;
134 virtual bool allowPlugins(bool enabledPerSettings) OVERRIDE; 134 virtual bool allowPlugins(bool enabledPerSettings) OVERRIDE;
135 virtual bool allowImage(bool enabledPerSettings, const WebCore::KURL& imageU RL) OVERRIDE; 135 virtual bool allowImage(bool enabledPerSettings, const WebCore::KURL& imageU RL) OVERRIDE;
136 virtual bool allowMedia(const WebCore::KURL& mediaURL) OVERRIDE;
136 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, WebCore ::SecurityOrigin*, const WebCore::KURL&) OVERRIDE; 137 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, WebCore ::SecurityOrigin*, const WebCore::KURL&) OVERRIDE;
137 virtual bool allowRunningInsecureContent(bool enabledPerSettings, WebCore::S ecurityOrigin*, const WebCore::KURL&) OVERRIDE; 138 virtual bool allowRunningInsecureContent(bool enabledPerSettings, WebCore::S ecurityOrigin*, const WebCore::KURL&) OVERRIDE;
138 virtual void didNotAllowScript() OVERRIDE; 139 virtual void didNotAllowScript() OVERRIDE;
139 virtual void didNotAllowPlugins() OVERRIDE; 140 virtual void didNotAllowPlugins() OVERRIDE;
140 141
141 virtual WebCookieJar* cookieJar() const OVERRIDE; 142 virtual WebCookieJar* cookieJar() const OVERRIDE;
142 virtual bool willCheckAndDispatchMessageEvent(WebCore::SecurityOrigin* targe t, WebCore::MessageEvent*) const OVERRIDE; 143 virtual bool willCheckAndDispatchMessageEvent(WebCore::SecurityOrigin* targe t, WebCore::MessageEvent*) const OVERRIDE;
143 virtual void didChangeName(const String&) OVERRIDE; 144 virtual void didChangeName(const String&) OVERRIDE;
144 145
145 virtual void dispatchWillOpenSocketStream(WebCore::SocketStreamHandle*) OVER RIDE; 146 virtual void dispatchWillOpenSocketStream(WebCore::SocketStreamHandle*) OVER RIDE;
(...skipping 25 matching lines...) Expand all
171 // The WebFrame that owns this object and manages its lifetime. Therefore, 172 // The WebFrame that owns this object and manages its lifetime. Therefore,
172 // the web frame object is guaranteed to exist. 173 // the web frame object is guaranteed to exist.
173 WebLocalFrameImpl* m_webFrame; 174 WebLocalFrameImpl* m_webFrame;
174 }; 175 };
175 176
176 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 177 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl());
177 178
178 } // namespace blink 179 } // namespace blink
179 180
180 #endif 181 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698