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

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

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 void WebLocalFrameImpl::setCommittedFirstRealLoad() { 2043 void WebLocalFrameImpl::setCommittedFirstRealLoad() {
2044 DCHECK(frame()); 2044 DCHECK(frame());
2045 ensureFrameLoaderHasCommitted(frame()->loader()); 2045 ensureFrameLoaderHasCommitted(frame()->loader());
2046 } 2046 }
2047 2047
2048 void WebLocalFrameImpl::setHasReceivedUserGesture() { 2048 void WebLocalFrameImpl::setHasReceivedUserGesture() {
2049 if (frame()) 2049 if (frame())
2050 frame()->document()->setHasReceivedUserGesture(); 2050 frame()->document()->setHasReceivedUserGesture();
2051 } 2051 }
2052 2052
2053 void WebLocalFrameImpl::blinkFeatureUsageReport(const std::set<int>& features) {
2054 DCHECK(!features.empty());
2055 // Assimilate all features used/performed by the browser into UseCounter.
2056 for (int feature : features) {
2057 UseCounter::count(frame(), static_cast<UseCounter::Feature>(feature));
2058 }
2059 }
2060
2061 void WebLocalFrameImpl::mixedContentFoundByTheBrowser(
2062 const WebURL& mainResourceUrl,
2063 const WebURL& mixedContentUrl,
2064 WebURLRequest::RequestContext requestContext,
2065 bool wasAllowed,
2066 bool hadRedirect) {
2067 DCHECK(frame());
2068 MixedContentChecker::mixedContentFoundByTheBrowser(
2069 frame(), mainResourceUrl, mixedContentUrl, requestContext, wasAllowed,
2070 hadRedirect);
2071 }
2072
2053 void WebLocalFrameImpl::sendOrientationChangeEvent() { 2073 void WebLocalFrameImpl::sendOrientationChangeEvent() {
2054 if (!frame()) 2074 if (!frame())
2055 return; 2075 return;
2056 2076
2057 // Screen Orientation API 2077 // Screen Orientation API
2058 if (ScreenOrientationControllerImpl::from(*frame())) 2078 if (ScreenOrientationControllerImpl::from(*frame()))
2059 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); 2079 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged();
2060 2080
2061 // Legacy window.orientation API 2081 // Legacy window.orientation API
2062 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) 2082 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow())
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 ->frameScheduler() 2379 ->frameScheduler()
2360 ->unthrottledTaskRunner() 2380 ->unthrottledTaskRunner()
2361 ->toSingleThreadTaskRunner(); 2381 ->toSingleThreadTaskRunner();
2362 } 2382 }
2363 2383
2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2384 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2365 return m_inputMethodController.get(); 2385 return m_inputMethodController.get();
2366 } 2386 }
2367 2387
2368 } // namespace blink 2388 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698