| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 // Clears any existing policy and constructs a new policy for this frame, | 602 // Clears any existing policy and constructs a new policy for this frame, |
| 603 // based on its parent frame. | 603 // based on its parent frame. |
| 604 void ResetFeaturePolicy(); | 604 void ResetFeaturePolicy(); |
| 605 | 605 |
| 606 // Tells the renderer that this RenderFrame will soon be swapped out, and thus | 606 // Tells the renderer that this RenderFrame will soon be swapped out, and thus |
| 607 // not to create any new modal dialogs until it happens. This must be done | 607 // not to create any new modal dialogs until it happens. This must be done |
| 608 // separately so that the ScopedPageLoadDeferrers of any current dialogs are | 608 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
| 609 // no longer on the stack when we attempt to swap it out. | 609 // no longer on the stack when we attempt to swap it out. |
| 610 void SuppressFurtherDialogs(); | 610 void SuppressFurtherDialogs(); |
| 611 | 611 |
| 612 void SetHasReceivedUserGesture(); | |
| 613 | |
| 614 void ClearFocusedElement(); | 612 void ClearFocusedElement(); |
| 615 | 613 |
| 616 // Returns whether the given URL is allowed to commit in the current process. | 614 // Returns whether the given URL is allowed to commit in the current process. |
| 617 // This is a more conservative check than RenderProcessHost::FilterURL, since | 615 // This is a more conservative check than RenderProcessHost::FilterURL, since |
| 618 // it will be used to kill processes that commit unauthorized URLs. | 616 // it will be used to kill processes that commit unauthorized URLs. |
| 619 bool CanCommitURL(const GURL& url); | 617 bool CanCommitURL(const GURL& url); |
| 620 | 618 |
| 621 // PlzNavigate: returns the PreviewsState of the last successful navigation | 619 // PlzNavigate: returns the PreviewsState of the last successful navigation |
| 622 // that made a network request. The PreviewsState is a bitmask of potentially | 620 // that made a network request. The PreviewsState is a bitmask of potentially |
| 623 // several Previews optimizations. | 621 // several Previews optimizations. |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 | 1184 |
| 1187 // NOTE: This must be the last member. | 1185 // NOTE: This must be the last member. |
| 1188 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1186 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1189 | 1187 |
| 1190 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1188 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1191 }; | 1189 }; |
| 1192 | 1190 |
| 1193 } // namespace content | 1191 } // namespace content |
| 1194 | 1192 |
| 1195 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |