OLD | NEW |
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 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 if (is_active()) | 2129 if (is_active()) |
2130 frame_tree_node_->DidStopLoading(); | 2130 frame_tree_node_->DidStopLoading(); |
2131 } | 2131 } |
2132 | 2132 |
2133 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { | 2133 void RenderFrameHostImpl::OnDidChangeLoadProgress(double load_progress) { |
2134 frame_tree_node_->DidChangeLoadProgress(load_progress); | 2134 frame_tree_node_->DidChangeLoadProgress(load_progress); |
2135 } | 2135 } |
2136 | 2136 |
2137 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( | 2137 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( |
2138 int job_id, | 2138 int job_id, |
2139 bool success, | 2139 MhtmlSaveStatus save_status, |
2140 const std::set<std::string>& digests_of_uris_of_serialized_resources, | 2140 const std::set<std::string>& digests_of_uris_of_serialized_resources, |
2141 base::TimeDelta renderer_main_thread_time) { | 2141 base::TimeDelta renderer_main_thread_time) { |
2142 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( | 2142 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( |
2143 this, job_id, success, digests_of_uris_of_serialized_resources, | 2143 this, job_id, save_status, digests_of_uris_of_serialized_resources, |
2144 renderer_main_thread_time); | 2144 renderer_main_thread_time); |
2145 } | 2145 } |
2146 | 2146 |
2147 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text, | 2147 void RenderFrameHostImpl::OnSelectionChanged(const base::string16& text, |
2148 uint32_t offset, | 2148 uint32_t offset, |
2149 const gfx::Range& range) { | 2149 const gfx::Range& range) { |
2150 has_selection_ = !text.empty(); | 2150 has_selection_ = !text.empty(); |
2151 GetRenderWidgetHost()->SelectionChanged(text, offset, range); | 2151 GetRenderWidgetHost()->SelectionChanged(text, offset, range); |
2152 } | 2152 } |
2153 | 2153 |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3304 // There is no pending NavigationEntry in these cases, so pass 0 as the | 3304 // There is no pending NavigationEntry in these cases, so pass 0 as the |
3305 // pending_nav_entry_id. If the previous handle was a prematurely aborted | 3305 // pending_nav_entry_id. If the previous handle was a prematurely aborted |
3306 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. | 3306 // navigation loaded via LoadDataWithBaseURL, propagate the entry id. |
3307 return NavigationHandleImpl::Create( | 3307 return NavigationHandleImpl::Create( |
3308 params.url, frame_tree_node_, is_renderer_initiated, | 3308 params.url, frame_tree_node_, is_renderer_initiated, |
3309 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), | 3309 params.was_within_same_page, params.is_srcdoc, base::TimeTicks::Now(), |
3310 entry_id_for_data_nav, false); // started_from_context_menu | 3310 entry_id_for_data_nav, false); // started_from_context_menu |
3311 } | 3311 } |
3312 | 3312 |
3313 } // namespace content | 3313 } // namespace content |
OLD | NEW |