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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 670 |
671 // Updates the state of this RenderFrameHost and clears any waiting state | 671 // Updates the state of this RenderFrameHost and clears any waiting state |
672 // that is no longer relevant. | 672 // that is no longer relevant. |
673 void SetState(RenderFrameHostImplState rfh_state); | 673 void SetState(RenderFrameHostImplState rfh_state); |
674 | 674 |
675 // Returns whether the given URL is allowed to commit in the current process. | 675 // Returns whether the given URL is allowed to commit in the current process. |
676 // This is a more conservative check than RenderProcessHost::FilterURL, since | 676 // This is a more conservative check than RenderProcessHost::FilterURL, since |
677 // it will be used to kill processes that commit unauthorized URLs. | 677 // it will be used to kill processes that commit unauthorized URLs. |
678 bool CanCommitURL(const GURL& url); | 678 bool CanCommitURL(const GURL& url); |
679 | 679 |
| 680 // Returns whether the given origin is allowed to commit in the current |
| 681 // RenderFrameHost. The |url| is used to ensure it matches the origin in cases |
| 682 // where it is applicable. This is a more conservative check than |
| 683 // RenderProcessHost::FilterURL, since it will be used to kill processes that |
| 684 // commit unauthorized origins. |
| 685 bool CanCommitOrigin(const url::Origin& origin, const GURL& url); |
| 686 |
680 // Asserts that the given RenderFrameHostImpl is part of the same browser | 687 // Asserts that the given RenderFrameHostImpl is part of the same browser |
681 // context (and crashes if not), then returns whether the given frame is | 688 // context (and crashes if not), then returns whether the given frame is |
682 // part of the same site instance. | 689 // part of the same site instance. |
683 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); | 690 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); |
684 | 691 |
685 // Informs the content client that geolocation permissions were used. | 692 // Informs the content client that geolocation permissions were used. |
686 void DidUseGeolocationPermission(); | 693 void DidUseGeolocationPermission(); |
687 | 694 |
688 void UpdatePermissionsForNavigation( | 695 void UpdatePermissionsForNavigation( |
689 const CommonNavigationParams& common_params, | 696 const CommonNavigationParams& common_params, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 | 938 |
932 // NOTE: This must be the last member. | 939 // NOTE: This must be the last member. |
933 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 940 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
934 | 941 |
935 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 942 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
936 }; | 943 }; |
937 | 944 |
938 } // namespace content | 945 } // namespace content |
939 | 946 |
940 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 947 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |