Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 680323002: Revert of Partially convert geolocation IPC to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 const std::vector<AccessibilityHostMsg_EventParams>& params, 445 const std::vector<AccessibilityHostMsg_EventParams>& params,
446 int reset_token); 446 int reset_token);
447 void OnAccessibilityLocationChanges( 447 void OnAccessibilityLocationChanges(
448 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 448 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
449 449
450 #if defined(OS_MACOSX) || defined(OS_ANDROID) 450 #if defined(OS_MACOSX) || defined(OS_ANDROID)
451 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 451 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
452 void OnHidePopup(); 452 void OnHidePopup();
453 #endif 453 #endif
454 454
455 // Registers Mojo services that this frame host makes available.
456 void RegisterMojoServices();
457
458 // Updates the state of this RenderFrameHost and clears any waiting state 455 // Updates the state of this RenderFrameHost and clears any waiting state
459 // that is no longer relevant. 456 // that is no longer relevant.
460 void SetState(RenderFrameHostImplState rfh_state); 457 void SetState(RenderFrameHostImplState rfh_state);
461 458
462 // Returns whether the given URL is allowed to commit in the current process. 459 // Returns whether the given URL is allowed to commit in the current process.
463 // This is a more conservative check than RenderProcessHost::FilterURL, since 460 // This is a more conservative check than RenderProcessHost::FilterURL, since
464 // it will be used to kill processes that commit unauthorized URLs. 461 // it will be used to kill processes that commit unauthorized URLs.
465 bool CanCommitURL(const GURL& url); 462 bool CanCommitURL(const GURL& url);
466 463
467 void PlatformNotificationPermissionRequestDone(int request_id, bool granted); 464 void PlatformNotificationPermissionRequestDone(int request_id, bool granted);
468 465
469 // Update the the singleton FrameAccessibility instance with a map 466 // Update the the singleton FrameAccessibility instance with a map
470 // from accessibility node id to the frame routing id of a cross-process 467 // from accessibility node id to the frame routing id of a cross-process
471 // iframe. 468 // iframe.
472 void UpdateCrossProcessIframeAccessibility( 469 void UpdateCrossProcessIframeAccessibility(
473 const std::map<int32, int> node_to_frame_routing_id_map); 470 const std::map<int32, int> node_to_frame_routing_id_map);
474 471
475 // Update the the singleton FrameAccessibility instance with a map 472 // Update the the singleton FrameAccessibility instance with a map
476 // from accessibility node id to the browser plugin instance id of a 473 // from accessibility node id to the browser plugin instance id of a
477 // guest WebContents. 474 // guest WebContents.
478 void UpdateGuestFrameAccessibility( 475 void UpdateGuestFrameAccessibility(
479 const std::map<int32, int> node_to_browser_plugin_instance_id_map); 476 const std::map<int32, int> node_to_browser_plugin_instance_id_map);
480 477
481 // Informs the content client that geolocation permissions were used.
482 void DidUseGeolocationPermission();
483
484 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 478 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
485 // refcount that calls Shutdown when it reaches zero. This allows each 479 // refcount that calls Shutdown when it reaches zero. This allows each
486 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 480 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
487 // we have a RenderViewHost for each RenderFrameHost. 481 // we have a RenderViewHost for each RenderFrameHost.
488 // TODO(creis): RenderViewHost will eventually go away and be replaced with 482 // TODO(creis): RenderViewHost will eventually go away and be replaced with
489 // some form of page context. 483 // some form of page context.
490 RenderViewHostImpl* render_view_host_; 484 RenderViewHostImpl* render_view_host_;
491 485
492 RenderFrameHostDelegate* delegate_; 486 RenderFrameHostDelegate* delegate_;
493 487
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 596
603 // NOTE: This must be the last member. 597 // NOTE: This must be the last member.
604 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 598 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
605 599
606 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 600 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
607 }; 601 };
608 602
609 } // namespace content 603 } // namespace content
610 604
611 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 605 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698