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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final comment Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 OnShowFullscreenWidget) 978 OnShowFullscreenWidget)
979 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunModal, OnRunModal) 979 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunModal, OnRunModal)
980 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady) 980 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady)
981 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone) 981 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone)
982 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateState, OnUpdateState) 982 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateState, OnUpdateState)
983 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnUpdateTargetURL) 983 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnUpdateTargetURL)
984 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSetting, 984 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSetting,
985 OnUpdateInspectorSetting) 985 OnUpdateInspectorSetting)
986 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) 986 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose)
987 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) 987 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove)
988 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeLoadProgress,
989 OnDidChangeLoadProgress)
990 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, 988 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame,
991 OnDocumentAvailableInMainFrame) 989 OnDocumentAvailableInMainFrame)
992 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, OnToggleFullscreen) 990 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, OnToggleFullscreen)
993 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, 991 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange,
994 OnDidContentsPreferredSizeChange) 992 OnDidContentsPreferredSizeChange)
995 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffset, 993 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffset,
996 OnDidChangeScrollOffset) 994 OnDidChangeScrollOffset)
997 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, 995 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame,
998 OnDidChangeScrollOffsetPinningForMainFrame) 996 OnDidChangeScrollOffsetPinningForMainFrame)
999 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeNumWheelEvents, 997 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeNumWheelEvents,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 // events, and we can take the fast path. 1179 // events, and we can take the fast path.
1182 ClosePageIgnoringUnloadEvents(); 1180 ClosePageIgnoringUnloadEvents();
1183 } 1181 }
1184 1182
1185 void RenderViewHostImpl::OnRequestMove(const gfx::Rect& pos) { 1183 void RenderViewHostImpl::OnRequestMove(const gfx::Rect& pos) {
1186 if (IsRVHStateActive(rvh_state_)) 1184 if (IsRVHStateActive(rvh_state_))
1187 delegate_->RequestMove(pos); 1185 delegate_->RequestMove(pos);
1188 Send(new ViewMsg_Move_ACK(GetRoutingID())); 1186 Send(new ViewMsg_Move_ACK(GetRoutingID()));
1189 } 1187 }
1190 1188
1191 void RenderViewHostImpl::OnDidChangeLoadProgress(double load_progress) {
1192 delegate_->DidChangeLoadProgress(load_progress);
1193 }
1194
1195 void RenderViewHostImpl::OnDocumentAvailableInMainFrame() { 1189 void RenderViewHostImpl::OnDocumentAvailableInMainFrame() {
1196 delegate_->DocumentAvailableInMainFrame(this); 1190 delegate_->DocumentAvailableInMainFrame(this);
1197 } 1191 }
1198 1192
1199 void RenderViewHostImpl::OnToggleFullscreen(bool enter_fullscreen) { 1193 void RenderViewHostImpl::OnToggleFullscreen(bool enter_fullscreen) {
1200 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1194 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1201 delegate_->ToggleFullscreenMode(enter_fullscreen); 1195 delegate_->ToggleFullscreenMode(enter_fullscreen);
1202 // We need to notify the contents that its fullscreen state has changed. This 1196 // We need to notify the contents that its fullscreen state has changed. This
1203 // is done as part of the resize message. 1197 // is done as part of the resize message.
1204 WasResized(); 1198 WasResized();
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 FrameTree* frame_tree = delegate_->GetFrameTree(); 1685 FrameTree* frame_tree = delegate_->GetFrameTree();
1692 1686
1693 frame_tree->ResetForMainFrameSwap(); 1687 frame_tree->ResetForMainFrameSwap();
1694 } 1688 }
1695 1689
1696 void RenderViewHostImpl::SelectWordAroundCaret() { 1690 void RenderViewHostImpl::SelectWordAroundCaret() {
1697 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1691 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1698 } 1692 }
1699 1693
1700 } // namespace content 1694 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698