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