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

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

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work on compile. Created 4 years, 7 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 <type_traits>
Łukasz Anforowicz 2016/05/12 18:56:48 I don't think this is needed?
dewittj 2016/05/12 22:58:01 Done.
7 #include <utility> 8 #include <utility>
8 9
9 #include "base/bind.h" 10 #include "base/bind.h"
10 #include "base/command_line.h" 11 #include "base/command_line.h"
11 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
12 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
13 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
14 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
15 #include "base/process/kill.h" 16 #include "base/process/kill.h"
16 #include "base/time/time.h" 17 #include "base/time/time.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "content/public/browser/permission_manager.h" 70 #include "content/public/browser/permission_manager.h"
70 #include "content/public/browser/permission_type.h" 71 #include "content/public/browser/permission_type.h"
71 #include "content/public/browser/render_process_host.h" 72 #include "content/public/browser/render_process_host.h"
72 #include "content/public/browser/render_widget_host_view.h" 73 #include "content/public/browser/render_widget_host_view.h"
73 #include "content/public/browser/stream_handle.h" 74 #include "content/public/browser/stream_handle.h"
74 #include "content/public/browser/user_metrics.h" 75 #include "content/public/browser/user_metrics.h"
75 #include "content/public/common/browser_side_navigation_policy.h" 76 #include "content/public/common/browser_side_navigation_policy.h"
76 #include "content/public/common/content_constants.h" 77 #include "content/public/common/content_constants.h"
77 #include "content/public/common/content_switches.h" 78 #include "content/public/common/content_switches.h"
78 #include "content/public/common/isolated_world_ids.h" 79 #include "content/public/common/isolated_world_ids.h"
80 #include "content/public/common/mhtml_generation.h"
79 #include "content/public/common/url_constants.h" 81 #include "content/public/common/url_constants.h"
80 #include "content/public/common/url_utils.h" 82 #include "content/public/common/url_utils.h"
81 #include "ui/accessibility/ax_tree.h" 83 #include "ui/accessibility/ax_tree.h"
82 #include "ui/accessibility/ax_tree_update.h" 84 #include "ui/accessibility/ax_tree_update.h"
83 #include "ui/gfx/geometry/quad_f.h" 85 #include "ui/gfx/geometry/quad_f.h"
84 #include "url/gurl.h" 86 #include "url/gurl.h"
85 87
86 #if defined(OS_ANDROID) 88 #if defined(OS_ANDROID)
87 #include "content/browser/mojo/service_registrar_android.h" 89 #include "content/browser/mojo/service_registrar_android.h"
88 #endif 90 #endif
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 if (is_active()) 1836 if (is_active())
1835 frame_tree_node_->DidStopLoading(); 1837 frame_tree_node_->DidStopLoading();
1836 } 1838 }
1837 1839
1838 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { 1840 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) {
1839 frame_tree_node_->DidChangeLoadProgress(load_progress); 1841 frame_tree_node_->DidChangeLoadProgress(load_progress);
1840 } 1842 }
1841 1843
1842 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( 1844 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse(
1843 int job_id, 1845 int job_id,
1844 bool success, 1846 MHTMLSerializationResult result,
1845 const std::set<std::string>& digests_of_uris_of_serialized_resources) { 1847 const std::set<std::string>& digests_of_uris_of_serialized_resources) {
1846 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( 1848 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse(
1847 this, job_id, success, digests_of_uris_of_serialized_resources); 1849 this, job_id, result, digests_of_uris_of_serialized_resources);
1848 } 1850 }
1849 1851
1850 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1852 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1851 void RenderFrameHostImpl::OnShowPopup( 1853 void RenderFrameHostImpl::OnShowPopup(
1852 const FrameHostMsg_ShowPopup_Params& params) { 1854 const FrameHostMsg_ShowPopup_Params& params) {
1853 RenderViewHostDelegateView* view = 1855 RenderViewHostDelegateView* view =
1854 render_view_host_->delegate_->GetDelegateView(); 1856 render_view_host_->delegate_->GetDelegateView();
1855 if (view) { 1857 if (view) {
1856 gfx::Point original_point(params.bounds.x(), params.bounds.y()); 1858 gfx::Point original_point(params.bounds.x(), params.bounds.y());
1857 gfx::Point transformed_point = 1859 gfx::Point transformed_point =
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 // handler after it's destroyed so it can't run after the RFHI is destroyed. 2766 // handler after it's destroyed so it can't run after the RFHI is destroyed.
2765 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 2767 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
2766 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 2768 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
2767 } 2769 }
2768 2770
2769 void RenderFrameHostImpl::DeleteWebBluetoothService() { 2771 void RenderFrameHostImpl::DeleteWebBluetoothService() {
2770 web_bluetooth_service_.reset(); 2772 web_bluetooth_service_.reset();
2771 } 2773 }
2772 2774
2773 } // namespace content 2775 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698