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

Side by Side Diff: third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp

Issue 2186863002: FrameLoader: add and export isReloadLoadType() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert of wrong revert Created 4 years, 4 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 | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "web/RemoteFrameClientImpl.h" 5 #include "web/RemoteFrameClientImpl.h"
6 6
7 #include "core/events/KeyboardEvent.h" 7 #include "core/events/KeyboardEvent.h"
8 #include "core/events/MouseEvent.h" 8 #include "core/events/MouseEvent.h"
9 #include "core/events/WheelEvent.h" 9 #include "core/events/WheelEvent.h"
10 #include "core/frame/RemoteFrame.h" 10 #include "core/frame/RemoteFrame.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should ReplaceCurrentEntry) 128 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should ReplaceCurrentEntry)
129 { 129 {
130 if (m_webFrame->client()) 130 if (m_webFrame->client())
131 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe placeCurrentEntry); 131 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe placeCurrentEntry);
132 } 132 }
133 133
134 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy clientRedirectPolicy) 134 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy clientRedirectPolicy)
135 { 135 {
136 ASSERT(loadType == FrameLoadTypeReload || loadType == FrameLoadTypeReloadByp assingCache); 136 DCHECK(isReloadLoadType(loadType));
137 if (m_webFrame->client()) 137 if (m_webFrame->client())
138 m_webFrame->client()->reload(static_cast<WebFrameLoadType>(loadType), st atic_cast<WebClientRedirectPolicy>(clientRedirectPolicy)); 138 m_webFrame->client()->reload(static_cast<WebFrameLoadType>(loadType), st atic_cast<WebClientRedirectPolicy>(clientRedirectPolicy));
139 } 139 }
140 140
141 unsigned RemoteFrameClientImpl::backForwardLength() 141 unsigned RemoteFrameClientImpl::backForwardLength()
142 { 142 {
143 // TODO(creis,japhet): This method should return the real value for the 143 // TODO(creis,japhet): This method should return the real value for the
144 // session history length. For now, return static value for the initial 144 // session history length. For now, return static value for the initial
145 // navigation and the subsequent one moving the frame out-of-process. 145 // navigation and the subsequent one moving the frame out-of-process.
146 // See https://crbug.com/501116. 146 // See https://crbug.com/501116.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 { 196 {
197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source )); 197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source ));
198 } 198 }
199 199
200 void RemoteFrameClientImpl::visibilityChanged(bool visible) 200 void RemoteFrameClientImpl::visibilityChanged(bool visible)
201 { 201 {
202 m_webFrame->client()->visibilityChanged(visible); 202 m_webFrame->client()->visibilityChanged(visible);
203 } 203 }
204 204
205 } // namespace blink 205 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698