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

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: Rebasing... 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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 1700
1701 is_loading_ = false; 1701 is_loading_ = false;
1702 frame_tree_node_->DidStopLoading(); 1702 frame_tree_node_->DidStopLoading();
1703 navigation_handle_.reset(); 1703 navigation_handle_.reset();
1704 } 1704 }
1705 1705
1706 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { 1706 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) {
1707 frame_tree_node_->DidChangeLoadProgress(load_progress); 1707 frame_tree_node_->DidChangeLoadProgress(load_progress);
1708 } 1708 }
1709 1709
1710 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(int job_id, bool success) { 1710 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(
1711 MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML(job_id, success); 1711 int job_id,
1712 bool success,
1713 const std::set<GURL>& uris_of_generated_mhtml_parts) {
1714 MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML(
1715 job_id, success, uris_of_generated_mhtml_parts);
1712 } 1716 }
1713 1717
1714 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1718 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1715 void RenderFrameHostImpl::OnShowPopup( 1719 void RenderFrameHostImpl::OnShowPopup(
1716 const FrameHostMsg_ShowPopup_Params& params) { 1720 const FrameHostMsg_ShowPopup_Params& params) {
1717 RenderViewHostDelegateView* view = 1721 RenderViewHostDelegateView* view =
1718 render_view_host_->delegate_->GetDelegateView(); 1722 render_view_host_->delegate_->GetDelegateView();
1719 if (view) { 1723 if (view) {
1720 view->ShowPopupMenu(this, 1724 view->ShowPopupMenu(this,
1721 params.bounds, 1725 params.bounds,
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 *dst = src; 2511 *dst = src;
2508 2512
2509 if (src.routing_id != -1) 2513 if (src.routing_id != -1)
2510 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2514 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2511 2515
2512 if (src.parent_routing_id != -1) 2516 if (src.parent_routing_id != -1)
2513 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2517 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2514 } 2518 }
2515 2519
2516 } // namespace content 2520 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698