| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 void OnAccessibilityEvents( | 429 void OnAccessibilityEvents( |
| 430 const std::vector<AccessibilityHostMsg_EventParams>& params); | 430 const std::vector<AccessibilityHostMsg_EventParams>& params); |
| 431 void OnAccessibilityLocationChanges( | 431 void OnAccessibilityLocationChanges( |
| 432 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 432 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
| 433 | 433 |
| 434 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 434 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 435 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 435 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
| 436 void OnHidePopup(); | 436 void OnHidePopup(); |
| 437 #endif | 437 #endif |
| 438 | 438 |
| 439 // Registers Mojo services that this frame host makes available. |
| 440 void RegisterMojoServices(); |
| 441 |
| 439 // Updates the state of this RenderFrameHost and clears any waiting state | 442 // Updates the state of this RenderFrameHost and clears any waiting state |
| 440 // that is no longer relevant. | 443 // that is no longer relevant. |
| 441 void SetState(RenderFrameHostImplState rfh_state); | 444 void SetState(RenderFrameHostImplState rfh_state); |
| 442 | 445 |
| 443 // Returns whether the given URL is allowed to commit in the current process. | 446 // Returns whether the given URL is allowed to commit in the current process. |
| 444 // This is a more conservative check than RenderProcessHost::FilterURL, since | 447 // This is a more conservative check than RenderProcessHost::FilterURL, since |
| 445 // it will be used to kill processes that commit unauthorized URLs. | 448 // it will be used to kill processes that commit unauthorized URLs. |
| 446 bool CanCommitURL(const GURL& url); | 449 bool CanCommitURL(const GURL& url); |
| 447 | 450 |
| 448 void PlatformNotificationPermissionRequestDone( | 451 void PlatformNotificationPermissionRequestDone( |
| 449 int request_id, blink::WebNotificationPermission permission); | 452 int request_id, blink::WebNotificationPermission permission); |
| 450 | 453 |
| 451 // Update the the singleton FrameAccessibility instance with a map | 454 // Update the the singleton FrameAccessibility instance with a map |
| 452 // from accessibility node id to the frame routing id of a cross-process | 455 // from accessibility node id to the frame routing id of a cross-process |
| 453 // iframe. | 456 // iframe. |
| 454 void UpdateCrossProcessIframeAccessibility( | 457 void UpdateCrossProcessIframeAccessibility( |
| 455 const std::map<int32, int> node_to_frame_routing_id_map); | 458 const std::map<int32, int> node_to_frame_routing_id_map); |
| 456 | 459 |
| 457 // Update the the singleton FrameAccessibility instance with a map | 460 // Update the the singleton FrameAccessibility instance with a map |
| 458 // from accessibility node id to the browser plugin instance id of a | 461 // from accessibility node id to the browser plugin instance id of a |
| 459 // guest WebContents. | 462 // guest WebContents. |
| 460 void UpdateGuestFrameAccessibility( | 463 void UpdateGuestFrameAccessibility( |
| 461 const std::map<int32, int> node_to_browser_plugin_instance_id_map); | 464 const std::map<int32, int> node_to_browser_plugin_instance_id_map); |
| 462 | 465 |
| 466 // Informs the content client that geolocation permissions were used. |
| 467 void DidUseGeolocationPermission(); |
| 468 |
| 463 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 469 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| 464 // refcount that calls Shutdown when it reaches zero. This allows each | 470 // refcount that calls Shutdown when it reaches zero. This allows each |
| 465 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 471 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
| 466 // we have a RenderViewHost for each RenderFrameHost. | 472 // we have a RenderViewHost for each RenderFrameHost. |
| 467 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 473 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 468 // some form of page context. | 474 // some form of page context. |
| 469 RenderViewHostImpl* render_view_host_; | 475 RenderViewHostImpl* render_view_host_; |
| 470 | 476 |
| 471 RenderFrameHostDelegate* delegate_; | 477 RenderFrameHostDelegate* delegate_; |
| 472 | 478 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 | 582 |
| 577 // NOTE: This must be the last member. | 583 // NOTE: This must be the last member. |
| 578 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 584 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 579 | 585 |
| 580 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 586 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 581 }; | 587 }; |
| 582 | 588 |
| 583 } // namespace content | 589 } // namespace content |
| 584 | 590 |
| 585 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 591 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |