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

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

Issue 1550233002: Move mixed content settings histograms into browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)); 125 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
126 return true; 126 return true;
127 } 127 }
128 128
129 void RemoteFrameClientImpl::frameFocused() const 129 void RemoteFrameClientImpl::frameFocused() const
130 { 130 {
131 if (m_webFrame->client()) 131 if (m_webFrame->client())
132 m_webFrame->client()->frameFocused(); 132 m_webFrame->client()->frameFocused();
133 } 133 }
134 134
135 void RemoteFrameClientImpl::triedDisplayingInsecureContent(SecurityOrigin* origi n, const KURL& url) const
136 {
137 if (m_webFrame->client())
138 m_webFrame->client()->triedDisplayingInsecureContent(WebSecurityOrigin(o rigin), url);
139 }
140
141 void RemoteFrameClientImpl::triedRunningInsecureContent(SecurityOrigin* origin, const KURL& url) const
142 {
143 if (m_webFrame->client())
144 m_webFrame->client()->triedRunningInsecureContent(WebSecurityOrigin(orig in), url);
145 }
146
135 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should ReplaceCurrentEntry) 147 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should ReplaceCurrentEntry)
136 { 148 {
137 if (m_webFrame->client()) 149 if (m_webFrame->client())
138 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe placeCurrentEntry); 150 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe placeCurrentEntry);
139 } 151 }
140 152
141 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy clientRedirectPolicy) 153 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy clientRedirectPolicy)
142 { 154 {
143 if (m_webFrame->client()) 155 if (m_webFrame->client())
144 m_webFrame->client()->reload(loadType == FrameLoadTypeReloadFromOrigin, clientRedirectPolicy == ClientRedirect); 156 m_webFrame->client()->reload(loadType == FrameLoadTypeReloadFromOrigin, clientRedirectPolicy == ClientRedirect);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 { 204 {
193 m_webFrame->client()->frameRectsChanged(frameRect); 205 m_webFrame->client()->frameRectsChanged(frameRect);
194 } 206 }
195 207
196 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, LocalFrame* source) 208 void RemoteFrameClientImpl::advanceFocus(WebFocusType type, LocalFrame* source)
197 { 209 {
198 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source )); 210 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source ));
199 } 211 }
200 212
201 } // namespace blink 213 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698