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

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

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