Chromium Code Reviews| Index: content/browser/frame_host/render_frame_host_impl.h |
| diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
| index b1e92c0f70a504187b644233a322bb69ad4c9764..26370a201dcd70e403acf33f2d4553be8ef39209 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.h |
| +++ b/content/browser/frame_host/render_frame_host_impl.h |
| @@ -608,6 +608,11 @@ class CONTENT_EXPORT RenderFrameHostImpl |
| void ClearFocusedElement(); |
| + // Returns whether the given URL is allowed to commit in the current process. |
| + // This is a more conservative check than RenderProcessHost::FilterURL, since |
| + // it will be used to kill processes that commit unauthorized URLs. |
| + bool CanCommitURL(const GURL& url); |
|
clamy
2017/02/22 16:40:16
You also need to move the function in the .cc file
arthursonzogni
2017/02/22 17:31:13
Done.
|
| + |
| // PlzNavigate: returns the PreviewsState of the last successful navigation |
| // that made a network request. The PreviewsState is a bitmask of potentially |
| // several Previews optimizations. |
| @@ -780,11 +785,6 @@ class CONTENT_EXPORT RenderFrameHostImpl |
| // relevant. |
| void ResetWaitingState(); |
| - // Returns whether the given URL is allowed to commit in the current process. |
| - // This is a more conservative check than RenderProcessHost::FilterURL, since |
| - // it will be used to kill processes that commit unauthorized URLs. |
| - bool CanCommitURL(const GURL& url); |
| - |
| // Returns whether the given origin is allowed to commit in the current |
| // RenderFrameHost. The |url| is used to ensure it matches the origin in cases |
| // where it is applicable. This is a more conservative check than |