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

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: 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) 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 virtual void RunScriptsAtDocumentIdle() = 0; 229 virtual void RunScriptsAtDocumentIdle() = 0;
230 230
231 virtual void DidCreateScriptContext(v8::Local<v8::Context>, int world_id) = 0; 231 virtual void DidCreateScriptContext(v8::Local<v8::Context>, int world_id) = 0;
232 virtual void WillReleaseScriptContext(v8::Local<v8::Context>, 232 virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
233 int world_id) = 0; 233 int world_id) = 0;
234 virtual bool AllowScriptExtensions() = 0; 234 virtual bool AllowScriptExtensions() = 0;
235 235
236 virtual void DidChangeScrollOffset() {} 236 virtual void DidChangeScrollOffset() {}
237 virtual void DidUpdateCurrentHistoryItem() {} 237 virtual void DidUpdateCurrentHistoryItem() {}
238 238
239 // Called when a content-initiated, main frame navigation to a data URL is
240 // about to occur.
241 virtual bool AllowContentInitiatedDataUrlNavigations(const KURL&) {
242 return false;
243 }
244
239 virtual WebCookieJar* CookieJar() const = 0; 245 virtual WebCookieJar* CookieJar() const = 0;
240 246
241 virtual void DidChangeName(const String&) {} 247 virtual void DidChangeName(const String&) {}
242 248
243 virtual void DidEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} 249 virtual void DidEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {}
244 250
245 virtual void DidUpdateToUniqueOrigin() {} 251 virtual void DidUpdateToUniqueOrigin() {}
246 252
247 virtual void DidChangeFramePolicy(Frame* child_frame, 253 virtual void DidChangeFramePolicy(Frame* child_frame,
248 SandboxFlags, 254 SandboxFlags,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 virtual void SetHasReceivedUserGesture(bool received_previously) {} 324 virtual void SetHasReceivedUserGesture(bool received_previously) {}
319 325
320 virtual void AbortClientNavigation() {} 326 virtual void AbortClientNavigation() {}
321 327
322 virtual TextCheckerClient& GetTextCheckerClient() const = 0; 328 virtual TextCheckerClient& GetTextCheckerClient() const = 0;
323 }; 329 };
324 330
325 } // namespace blink 331 } // namespace blink
326 332
327 #endif // LocalFrameClient_h 333 #endif // LocalFrameClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698