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

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

Issue 1417323006: OOPIFs: Deduplicating MHTML parts across frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-serialization-per-frame
Patch Set: Addressed CR feedback from rdsmith@. Created 4 years, 11 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
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/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 frame_tree_node()->frame_tree_node_id(), job_id, success,
1719 digests_of_uris_of_serialized_resources);
1715 } 1720 }
1716 1721
1717 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1722 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1718 void RenderFrameHostImpl::OnShowPopup( 1723 void RenderFrameHostImpl::OnShowPopup(
1719 const FrameHostMsg_ShowPopup_Params& params) { 1724 const FrameHostMsg_ShowPopup_Params& params) {
1720 RenderViewHostDelegateView* view = 1725 RenderViewHostDelegateView* view =
1721 render_view_host_->delegate_->GetDelegateView(); 1726 render_view_host_->delegate_->GetDelegateView();
1722 if (view) { 1727 if (view) {
1723 view->ShowPopupMenu(this, 1728 view->ShowPopupMenu(this,
1724 params.bounds, 1729 params.bounds,
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 *dst = src; 2521 *dst = src;
2517 2522
2518 if (src.routing_id != -1) 2523 if (src.routing_id != -1)
2519 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2524 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2520 2525
2521 if (src.parent_routing_id != -1) 2526 if (src.parent_routing_id != -1)
2522 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2527 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2523 } 2528 }
2524 2529
2525 } // namespace content 2530 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698