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

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: Now using shared scheme collections from url_util.h. 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 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 void WebLocalFrameImpl::setCommittedFirstRealLoad() { 2038 void WebLocalFrameImpl::setCommittedFirstRealLoad() {
2039 DCHECK(frame()); 2039 DCHECK(frame());
2040 ensureFrameLoaderHasCommitted(frame()->loader()); 2040 ensureFrameLoaderHasCommitted(frame()->loader());
2041 } 2041 }
2042 2042
2043 void WebLocalFrameImpl::setHasReceivedUserGesture() { 2043 void WebLocalFrameImpl::setHasReceivedUserGesture() {
2044 if (frame()) 2044 if (frame())
2045 frame()->setDocumentHasReceivedUserGesture(); 2045 frame()->setDocumentHasReceivedUserGesture();
2046 } 2046 }
2047 2047
2048 void WebLocalFrameImpl::blinkFeatureUsageReport(const std::set<int>& features) {
2049 DCHECK(!features.empty());
2050 // Assimilate all features used/performed by the browser into UseCounter.
2051 for (int feature : features) {
2052 UseCounter::count(frame(), static_cast<UseCounter::Feature>(feature));
2053 }
2054 }
2055
2056 void WebLocalFrameImpl::mixedContentFound(
2057 const WebURL& mainResourceUrl,
2058 const WebURL& mixedContentUrl,
2059 WebURLRequest::RequestContext requestContext,
2060 bool wasAllowed,
2061 bool hadRedirect) {
2062 DCHECK(frame());
2063 MixedContentChecker::mixedContentFound(frame(), mainResourceUrl,
2064 mixedContentUrl, requestContext,
2065 wasAllowed, hadRedirect);
2066 }
2067
2048 void WebLocalFrameImpl::sendOrientationChangeEvent() { 2068 void WebLocalFrameImpl::sendOrientationChangeEvent() {
2049 if (!frame()) 2069 if (!frame())
2050 return; 2070 return;
2051 2071
2052 // Screen Orientation API 2072 // Screen Orientation API
2053 if (ScreenOrientationControllerImpl::from(*frame())) 2073 if (ScreenOrientationControllerImpl::from(*frame()))
2054 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); 2074 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged();
2055 2075
2056 // Legacy window.orientation API 2076 // Legacy window.orientation API
2057 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) 2077 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow())
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2354 ->frameScheduler() 2374 ->frameScheduler()
2355 ->unthrottledTaskRunner() 2375 ->unthrottledTaskRunner()
2356 ->toSingleThreadTaskRunner(); 2376 ->toSingleThreadTaskRunner();
2357 } 2377 }
2358 2378
2359 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2379 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2360 return m_inputMethodController.get(); 2380 return m_inputMethodController.get();
2361 } 2381 }
2362 2382
2363 } // namespace blink 2383 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698