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

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: dcheng comments - move checks to FrameLoader 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 WebMediaPlayerClient*) override; 162 WebMediaPlayerClient*) override;
163 WebRemotePlaybackClient* CreateWebRemotePlaybackClient( 163 WebRemotePlaybackClient* CreateWebRemotePlaybackClient(
164 HTMLMediaElement&) override; 164 HTMLMediaElement&) override;
165 ObjectContentType GetObjectContentType( 165 ObjectContentType GetObjectContentType(
166 const KURL&, 166 const KURL&,
167 const WTF::String& mime_type, 167 const WTF::String& mime_type,
168 bool should_prefer_plug_ins_for_images) override; 168 bool should_prefer_plug_ins_for_images) override;
169 void DidChangeScrollOffset() override; 169 void DidChangeScrollOffset() override;
170 void DidUpdateCurrentHistoryItem() override; 170 void DidUpdateCurrentHistoryItem() override;
171 171
172 bool AllowContentInitiatedDataUrlNavigations(const KURL&) override;
173
172 WebCookieJar* CookieJar() const override; 174 WebCookieJar* CookieJar() const override;
173 void FrameFocused() const override; 175 void FrameFocused() const override;
174 void DidChangeName(const String&) override; 176 void DidChangeName(const String&) override;
175 void DidEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) override; 177 void DidEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) override;
176 void DidUpdateToUniqueOrigin() override; 178 void DidUpdateToUniqueOrigin() override;
177 void DidChangeSandboxFlags(Frame* child_frame, SandboxFlags) override; 179 void DidChangeSandboxFlags(Frame* child_frame, SandboxFlags) override;
178 void DidSetFeaturePolicyHeader( 180 void DidSetFeaturePolicyHeader(
179 const WebParsedFeaturePolicy& parsed_header) override; 181 const WebParsedFeaturePolicy& parsed_header) override;
180 void DidAddContentSecurityPolicies( 182 void DidAddContentSecurityPolicies(
181 const blink::WebVector<WebContentSecurityPolicy>&) override; 183 const blink::WebVector<WebContentSecurityPolicy>&) override;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 235
234 DEFINE_TYPE_CASTS(LocalFrameClientImpl, 236 DEFINE_TYPE_CASTS(LocalFrameClientImpl,
235 LocalFrameClient, 237 LocalFrameClient,
236 client, 238 client,
237 client->IsLocalFrameClientImpl(), 239 client->IsLocalFrameClientImpl(),
238 client.IsLocalFrameClientImpl()); 240 client.IsLocalFrameClientImpl());
239 241
240 } // namespace blink 242 } // namespace blink
241 243
242 #endif 244 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698