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

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 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 1707
1708 is_loading_ = false; 1708 is_loading_ = false;
1709 frame_tree_node_->DidStopLoading(); 1709 frame_tree_node_->DidStopLoading();
1710 navigation_handle_.reset(); 1710 navigation_handle_.reset();
1711 } 1711 }
1712 1712
1713 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { 1713 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) {
1714 frame_tree_node_->DidChangeLoadProgress(load_progress); 1714 frame_tree_node_->DidChangeLoadProgress(load_progress);
1715 } 1715 }
1716 1716
1717 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(int job_id, bool success) { 1717 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(
1718 MHTMLGenerationManager::GetInstance()->OnSavedFrameAsMHTML(job_id, success); 1718 int job_id,
1719 bool success,
1720 const std::set<std::string>& digests_of_uris_of_serialized_resources) {
1721 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse(
1722 this, job_id, success, digests_of_uris_of_serialized_resources);
1719 } 1723 }
1720 1724
1721 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1725 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1722 void RenderFrameHostImpl::OnShowPopup( 1726 void RenderFrameHostImpl::OnShowPopup(
1723 const FrameHostMsg_ShowPopup_Params& params) { 1727 const FrameHostMsg_ShowPopup_Params& params) {
1724 RenderViewHostDelegateView* view = 1728 RenderViewHostDelegateView* view =
1725 render_view_host_->delegate_->GetDelegateView(); 1729 render_view_host_->delegate_->GetDelegateView();
1726 if (view) { 1730 if (view) {
1727 view->ShowPopupMenu(this, 1731 view->ShowPopupMenu(this,
1728 params.bounds, 1732 params.bounds,
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2520 *dst = src; 2524 *dst = src;
2521 2525
2522 if (src.routing_id != -1) 2526 if (src.routing_id != -1)
2523 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); 2527 dst->tree_id = RoutingIDToAXTreeID(src.routing_id);
2524 2528
2525 if (src.parent_routing_id != -1) 2529 if (src.parent_routing_id != -1)
2526 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); 2530 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id);
2527 } 2531 }
2528 2532
2529 } // namespace content 2533 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698