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

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: Introduced MHTMLPartsGenerationDelegate interface. Created 5 years 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 <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 1709
1710 is_loading_ = false; 1710 is_loading_ = false;
1711 frame_tree_node_->DidStopLoading(); 1711 frame_tree_node_->DidStopLoading();
1712 navigation_handle_.reset(); 1712 navigation_handle_.reset();
1713 } 1713 }
1714 1714
1715 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { 1715 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) {
1716 frame_tree_node_->DidChangeLoadProgress(load_progress); 1716 frame_tree_node_->DidChangeLoadProgress(load_progress);
1717 } 1717 }
1718 1718
1719 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(int job_id, bool success) { 1719 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(
1720 MHTMLGenerationManager::GetInstance()->OnSavedFrameAsMHTML(job_id, success); 1720 int job_id,
1721 bool success,
1722 const std::set<GURL>& uris_of_serialized_resources) {
1723 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse(
1724 job_id, success, uris_of_serialized_resources);
1721 } 1725 }
1722 1726
1723 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1727 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1724 void RenderFrameHostImpl::OnShowPopup( 1728 void RenderFrameHostImpl::OnShowPopup(
1725 const FrameHostMsg_ShowPopup_Params& params) { 1729 const FrameHostMsg_ShowPopup_Params& params) {
1726 RenderViewHostDelegateView* view = 1730 RenderViewHostDelegateView* view =
1727 render_view_host_->delegate_->GetDelegateView(); 1731 render_view_host_->delegate_->GetDelegateView();
1728 if (view) { 1732 if (view) {
1729 view->ShowPopupMenu(this, 1733 view->ShowPopupMenu(this,
1730 params.bounds, 1734 params.bounds,
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698