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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 2655463006: PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void dispatchDidFinishLoad() = 0; 114 virtual void dispatchDidFinishLoad() = 0;
115 virtual void dispatchDidChangeThemeColor() = 0; 115 virtual void dispatchDidChangeThemeColor() = 0;
116 116
117 virtual NavigationPolicy decidePolicyForNavigation( 117 virtual NavigationPolicy decidePolicyForNavigation(
118 const ResourceRequest&, 118 const ResourceRequest&,
119 DocumentLoader*, 119 DocumentLoader*,
120 NavigationType, 120 NavigationType,
121 NavigationPolicy, 121 NavigationPolicy,
122 bool shouldReplaceCurrentEntry, 122 bool shouldReplaceCurrentEntry,
123 bool isClientRedirect, 123 bool isClientRedirect,
124 HTMLFormElement*) = 0; 124 HTMLFormElement*,
125 ContentSecurityPolicyDisposition shouldBypassMainWorldCSP) = 0;
alexmos 2017/02/24 06:40:28 This arg is named as if it's a bool, but it's not,
arthursonzogni 2017/02/24 16:13:30 I agree. I will use shouldCheckMainWorldContentSec
125 126
126 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; 127 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0;
127 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; 128 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0;
128 129
129 virtual void didStartLoading(LoadStartType) = 0; 130 virtual void didStartLoading(LoadStartType) = 0;
130 virtual void progressEstimateChanged(double progressEstimate) = 0; 131 virtual void progressEstimateChanged(double progressEstimate) = 0;
131 virtual void didStopLoading() = 0; 132 virtual void didStopLoading() = 0;
132 133
133 virtual void loadURLExternally(const ResourceRequest&, 134 virtual void loadURLExternally(const ResourceRequest&,
134 NavigationPolicy, 135 NavigationPolicy,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 342 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
342 343
343 virtual BlameContext* frameBlameContext() { return nullptr; } 344 virtual BlameContext* frameBlameContext() { return nullptr; }
344 345
345 virtual void setHasReceivedUserGesture() {} 346 virtual void setHasReceivedUserGesture() {}
346 }; 347 };
347 348
348 } // namespace blink 349 } // namespace blink
349 350
350 #endif // FrameLoaderClient_h 351 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698