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

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

Issue 298283003: Add WasShown/WasHidden to RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 years, 6 months 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 | Annotate | Revision Log
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 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/user_metrics_action.h" 10 #include "base/metrics/user_metrics_action.h"
11 #include "content/browser/child_process_security_policy_impl.h" 11 #include "content/browser/child_process_security_policy_impl.h"
12 #include "content/browser/frame_host/cross_process_frame_connector.h" 12 #include "content/browser/frame_host/cross_process_frame_connector.h"
13 #include "content/browser/frame_host/cross_site_transferring_request.h" 13 #include "content/browser/frame_host/cross_site_transferring_request.h"
14 #include "content/browser/frame_host/frame_tree.h" 14 #include "content/browser/frame_host/frame_tree.h"
15 #include "content/browser/frame_host/frame_tree_node.h" 15 #include "content/browser/frame_host/frame_tree_node.h"
16 #include "content/browser/frame_host/navigator.h" 16 #include "content/browser/frame_host/navigator.h"
17 #include "content/browser/frame_host/render_frame_host_delegate.h" 17 #include "content/browser/frame_host/render_frame_host_delegate.h"
18 #include "content/browser/frame_host/render_frame_proxy_host.h" 18 #include "content/browser/frame_host/render_frame_proxy_host.h"
19 #include "content/browser/renderer_host/input/input_router.h" 19 #include "content/browser/renderer_host/input/input_router.h"
20 #include "content/browser/renderer_host/input/timeout_monitor.h" 20 #include "content/browser/renderer_host/input/timeout_monitor.h"
21 #include "content/browser/renderer_host/render_view_host_impl.h" 21 #include "content/browser/renderer_host/render_view_host_impl.h"
22 #include "content/browser/renderer_host/render_widget_host_impl.h"
22 #include "content/common/desktop_notification_messages.h" 23 #include "content/common/desktop_notification_messages.h"
23 #include "content/common/frame_messages.h" 24 #include "content/common/frame_messages.h"
24 #include "content/common/input_messages.h" 25 #include "content/common/input_messages.h"
25 #include "content/common/inter_process_time_ticks_converter.h" 26 #include "content/common/inter_process_time_ticks_converter.h"
26 #include "content/common/swapped_out_messages.h" 27 #include "content/common/swapped_out_messages.h"
27 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/content_browser_client.h" 29 #include "content/public/browser/content_browser_client.h"
29 #include "content/public/browser/desktop_notification_delegate.h" 30 #include "content/public/browser/desktop_notification_delegate.h"
30 #include "content/public/browser/render_process_host.h" 31 #include "content/public/browser/render_process_host.h"
31 #include "content/public/browser/render_widget_host_view.h" 32 #include "content/public/browser/render_widget_host_view.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // filenames it can't access in a future session restore. 482 // filenames it can't access in a future session restore.
482 if (!render_view_host_->CanAccessFilesOfPageState( 483 if (!render_view_host_->CanAccessFilesOfPageState(
483 validated_params.page_state)) { 484 validated_params.page_state)) {
484 GetProcess()->ReceivedBadMessage(); 485 GetProcess()->ReceivedBadMessage();
485 return; 486 return;
486 } 487 }
487 488
488 frame_tree_node()->navigator()->DidNavigate(this, validated_params); 489 frame_tree_node()->navigator()->DidNavigate(this, validated_params);
489 } 490 }
490 491
492 RenderWidgetHostImpl* RenderFrameHostImpl::GetRenderWidgetHost() {
493 return static_cast<RenderWidgetHostImpl*>(render_view_host_);
494 }
495
491 int RenderFrameHostImpl::GetEnabledBindings() { 496 int RenderFrameHostImpl::GetEnabledBindings() {
492 return render_view_host_->GetEnabledBindings(); 497 return render_view_host_->GetEnabledBindings();
493 } 498 }
494 499
495 void RenderFrameHostImpl::OnCrossSiteResponse( 500 void RenderFrameHostImpl::OnCrossSiteResponse(
496 const GlobalRequestID& global_request_id, 501 const GlobalRequestID& global_request_id,
497 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 502 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
498 const std::vector<GURL>& transfer_url_chain, 503 const std::vector<GURL>& transfer_url_chain,
499 const Referrer& referrer, 504 const Referrer& referrer,
500 PageTransition page_transition, 505 PageTransition page_transition,
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 cancel_notification_callbacks_.erase(notification_id); 890 cancel_notification_callbacks_.erase(notification_id);
886 } 891 }
887 892
888 void RenderFrameHostImpl::DesktopNotificationPermissionRequestDone( 893 void RenderFrameHostImpl::DesktopNotificationPermissionRequestDone(
889 int callback_context) { 894 int callback_context) {
890 Send(new DesktopNotificationMsg_PermissionRequestDone( 895 Send(new DesktopNotificationMsg_PermissionRequestDone(
891 routing_id_, callback_context)); 896 routing_id_, callback_context));
892 } 897 }
893 898
894 } // namespace content 899 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698