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

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: Fix Android PDF tests where PDFs should be downloaded 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 DidChangeFramePolicy(Frame* child_frame, 179 void DidChangeFramePolicy(Frame* child_frame,
178 SandboxFlags, 180 SandboxFlags,
179 const WebParsedFeaturePolicy&) override; 181 const WebParsedFeaturePolicy&) override;
180 void DidSetFeaturePolicyHeader( 182 void DidSetFeaturePolicyHeader(
181 const WebParsedFeaturePolicy& parsed_header) override; 183 const WebParsedFeaturePolicy& parsed_header) override;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 237
236 DEFINE_TYPE_CASTS(LocalFrameClientImpl, 238 DEFINE_TYPE_CASTS(LocalFrameClientImpl,
237 LocalFrameClient, 239 LocalFrameClient,
238 client, 240 client,
239 client->IsLocalFrameClientImpl(), 241 client->IsLocalFrameClientImpl(),
240 client.IsLocalFrameClientImpl()); 242 client.IsLocalFrameClientImpl());
241 243
242 } // namespace blink 244 } // namespace blink
243 245
244 #endif 246 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkUtils.cpp ('k') | third_party/WebKit/Source/web/LocalFrameClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698