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