| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // Returns whether the given URL is allowed to commit in the current process. | 596 // Returns whether the given URL is allowed to commit in the current process. |
| 597 // This is a more conservative check than RenderProcessHost::FilterURL, since | 597 // This is a more conservative check than RenderProcessHost::FilterURL, since |
| 598 // it will be used to kill processes that commit unauthorized URLs. | 598 // it will be used to kill processes that commit unauthorized URLs. |
| 599 bool CanCommitURL(const GURL& url); | 599 bool CanCommitURL(const GURL& url); |
| 600 | 600 |
| 601 // Asserts that the given RenderFrameHostImpl is part of the same browser | 601 // Asserts that the given RenderFrameHostImpl is part of the same browser |
| 602 // context (and crashes if not), then returns whether the given frame is | 602 // context (and crashes if not), then returns whether the given frame is |
| 603 // part of the same site instance. | 603 // part of the same site instance. |
| 604 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); | 604 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); |
| 605 | 605 |
| 606 // Informs the content client that geolocation permissions were used. | |
| 607 void DidUseGeolocationPermission(); | |
| 608 | |
| 609 void UpdatePermissionsForNavigation( | 606 void UpdatePermissionsForNavigation( |
| 610 const CommonNavigationParams& common_params, | 607 const CommonNavigationParams& common_params, |
| 611 const RequestNavigationParams& request_params); | 608 const RequestNavigationParams& request_params); |
| 612 | 609 |
| 613 // Returns true if the ExecuteJavaScript() API can be used on this host. | 610 // Returns true if the ExecuteJavaScript() API can be used on this host. |
| 614 bool CanExecuteJavaScript(); | 611 bool CanExecuteJavaScript(); |
| 615 | 612 |
| 616 // Map a routing ID from a frame in the same frame tree to a globally | 613 // Map a routing ID from a frame in the same frame tree to a globally |
| 617 // unique AXTreeID. | 614 // unique AXTreeID. |
| 618 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id); | 615 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 | 825 |
| 829 // NOTE: This must be the last member. | 826 // NOTE: This must be the last member. |
| 830 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 827 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 831 | 828 |
| 832 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 829 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 833 }; | 830 }; |
| 834 | 831 |
| 835 } // namespace content | 832 } // namespace content |
| 836 | 833 |
| 837 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 834 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |