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

Side by Side Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: kinuko comments Created 3 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 WebMediaPlayerClient*) override; 161 WebMediaPlayerClient*) override;
162 WebRemotePlaybackClient* createWebRemotePlaybackClient( 162 WebRemotePlaybackClient* createWebRemotePlaybackClient(
163 HTMLMediaElement&) override; 163 HTMLMediaElement&) override;
164 ObjectContentType getObjectContentType( 164 ObjectContentType getObjectContentType(
165 const KURL&, 165 const KURL&,
166 const WTF::String& mimeType, 166 const WTF::String& mimeType,
167 bool shouldPreferPlugInsForImages) override; 167 bool shouldPreferPlugInsForImages) override;
168 void didChangeScrollOffset() override; 168 void didChangeScrollOffset() override;
169 void didUpdateCurrentHistoryItem() override; 169 void didUpdateCurrentHistoryItem() override;
170 170
171 bool allowContentInitiatedDataUrlNavigations(const KURL&) override;
172
171 WebCookieJar* cookieJar() const override; 173 WebCookieJar* cookieJar() const override;
172 void frameFocused() const override; 174 void frameFocused() const override;
173 void didChangeName(const String&) override; 175 void didChangeName(const String&) override;
174 void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) override; 176 void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) override;
175 void didUpdateToUniqueOrigin() override; 177 void didUpdateToUniqueOrigin() override;
176 void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) override; 178 void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) override;
177 void didSetFeaturePolicyHeader( 179 void didSetFeaturePolicyHeader(
178 const WebParsedFeaturePolicy& parsedHeader) override; 180 const WebParsedFeaturePolicy& parsedHeader) override;
179 void didAddContentSecurityPolicies( 181 void didAddContentSecurityPolicies(
180 const blink::WebVector<WebContentSecurityPolicy>&) override; 182 const blink::WebVector<WebContentSecurityPolicy>&) override;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 234
233 DEFINE_TYPE_CASTS(LocalFrameClientImpl, 235 DEFINE_TYPE_CASTS(LocalFrameClientImpl,
234 LocalFrameClient, 236 LocalFrameClient,
235 client, 237 client,
236 client->isLocalFrameClientImpl(), 238 client->isLocalFrameClientImpl(),
237 client.isLocalFrameClientImpl()); 239 client.isLocalFrameClientImpl());
238 240
239 } // namespace blink 241 } // namespace blink
240 242
241 #endif 243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698