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

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 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 1710 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(
1711 int job_id, 1711 int job_id,
1712 bool success, 1712 bool success,
1713 const std::string& mhtml_boundary_marker) { 1713 const std::string& mhtml_boundary_marker,
1714 const std::set<GURL>& uris_of_generated_mhtml_parts) {
1714 MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML( 1715 MHTMLGenerationManager::GetInstance()->OnSavedPageAsMHTML(
1715 job_id, success, mhtml_boundary_marker); 1716 job_id, success, mhtml_boundary_marker, uris_of_generated_mhtml_parts);
1716 } 1717 }
1717 1718
1718 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1719 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1719 void RenderFrameHostImpl::OnShowPopup( 1720 void RenderFrameHostImpl::OnShowPopup(
1720 const FrameHostMsg_ShowPopup_Params& params) { 1721 const FrameHostMsg_ShowPopup_Params& params) {
1721 RenderViewHostDelegateView* view = 1722 RenderViewHostDelegateView* view =
1722 render_view_host_->delegate_->GetDelegateView(); 1723 render_view_host_->delegate_->GetDelegateView();
1723 if (view) { 1724 if (view) {
1724 view->ShowPopupMenu(this, 1725 view->ShowPopupMenu(this,
1725 params.bounds, 1726 params.bounds,
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2514 *dst = src; 2515 *dst = src;
2515 2516
2516 if (src.routing_id != -1) 2517 if (src.routing_id != -1)
2517 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2518 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2518 2519
2519 if (src.parent_routing_id != -1) 2520 if (src.parent_routing_id != -1)
2520 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2521 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2521 } 2522 }
2522 2523
2523 } // namespace content 2524 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698