| 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 #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/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1703 | 1703 |
| 1704 is_loading_ = false; | 1704 is_loading_ = false; |
| 1705 frame_tree_node_->DidStopLoading(); | 1705 frame_tree_node_->DidStopLoading(); |
| 1706 navigation_handle_.reset(); | 1706 navigation_handle_.reset(); |
| 1707 } | 1707 } |
| 1708 | 1708 |
| 1709 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { | 1709 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { |
| 1710 frame_tree_node_->DidChangeLoadProgress(load_progress); | 1710 frame_tree_node_->DidChangeLoadProgress(load_progress); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(int job_id, bool success) { | 1713 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( |
| 1714 MHTMLGenerationManager::GetInstance()->OnSavedFrameAsMHTML(job_id, success); | 1714 int job_id, |
| 1715 bool success, |
| 1716 const std::set<std::string>& digests_of_uris_of_serialized_resources) { |
| 1717 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( |
| 1718 job_id, success, digests_of_uris_of_serialized_resources); |
| 1715 } | 1719 } |
| 1716 | 1720 |
| 1717 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1721 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1718 void RenderFrameHostImpl::OnShowPopup( | 1722 void RenderFrameHostImpl::OnShowPopup( |
| 1719 const FrameHostMsg_ShowPopup_Params& params) { | 1723 const FrameHostMsg_ShowPopup_Params& params) { |
| 1720 RenderViewHostDelegateView* view = | 1724 RenderViewHostDelegateView* view = |
| 1721 render_view_host_->delegate_->GetDelegateView(); | 1725 render_view_host_->delegate_->GetDelegateView(); |
| 1722 if (view) { | 1726 if (view) { |
| 1723 view->ShowPopupMenu(this, | 1727 view->ShowPopupMenu(this, |
| 1724 params.bounds, | 1728 params.bounds, |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 *dst = src; | 2520 *dst = src; |
| 2517 | 2521 |
| 2518 if (src.routing_id != -1) | 2522 if (src.routing_id != -1) |
| 2519 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2523 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2520 | 2524 |
| 2521 if (src.parent_routing_id != -1) | 2525 if (src.parent_routing_id != -1) |
| 2522 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2526 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2523 } | 2527 } |
| 2524 | 2528 |
| 2525 } // namespace content | 2529 } // namespace content |
| OLD | NEW |