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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrameClient.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Re-block data to data navigations, rebase, address nasko 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 virtual void runScriptsAtDocumentIdle() = 0; 227 virtual void runScriptsAtDocumentIdle() = 0;
228 228
229 virtual void didCreateScriptContext(v8::Local<v8::Context>, int worldId) = 0; 229 virtual void didCreateScriptContext(v8::Local<v8::Context>, int worldId) = 0;
230 virtual void willReleaseScriptContext(v8::Local<v8::Context>, 230 virtual void willReleaseScriptContext(v8::Local<v8::Context>,
231 int worldId) = 0; 231 int worldId) = 0;
232 virtual bool allowScriptExtensions() = 0; 232 virtual bool allowScriptExtensions() = 0;
233 233
234 virtual void didChangeScrollOffset() {} 234 virtual void didChangeScrollOffset() {}
235 virtual void didUpdateCurrentHistoryItem() {} 235 virtual void didUpdateCurrentHistoryItem() {}
236 236
237 // Called when a content-initiated, main frame navigation to a data URL is
238 // about to occur.
239 virtual bool allowInsecureDataUrlNavigations(const KURL&) { return false; }
240
237 virtual WebCookieJar* cookieJar() const = 0; 241 virtual WebCookieJar* cookieJar() const = 0;
238 242
239 virtual void didChangeName(const String&) {} 243 virtual void didChangeName(const String&) {}
240 244
241 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} 245 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {}
242 246
243 virtual void didUpdateToUniqueOrigin() {} 247 virtual void didUpdateToUniqueOrigin() {}
244 248
245 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {} 249 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {}
246 250
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 virtual void setHasReceivedUserGesture() {} 318 virtual void setHasReceivedUserGesture() {}
315 319
316 virtual void abortClientNavigation() {} 320 virtual void abortClientNavigation() {}
317 321
318 virtual TextCheckerClient& textCheckerClient() const = 0; 322 virtual TextCheckerClient& textCheckerClient() const = 0;
319 }; 323 };
320 324
321 } // namespace blink 325 } // namespace blink
322 326
323 #endif // LocalFrameClient_h 327 #endif // LocalFrameClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698