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

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

Issue 2011763006: Add an iframe permissions= attribute for implementing permission delegation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-1-flag
Patch Set: Blink-side Created 4 years, 5 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 static_cast<WebContentSecurityPolicyType>(type), 931 static_cast<WebContentSecurityPolicyType>(type),
932 static_cast<WebContentSecurityPolicySource>(source)); 932 static_cast<WebContentSecurityPolicySource>(source));
933 } 933 }
934 } 934 }
935 935
936 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement) 936 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement)
937 { 937 {
938 if (!m_webFrame->client()) 938 if (!m_webFrame->client())
939 return; 939 return;
940 940
941 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram eElement->contentFrame()), WebFrameOwnerProperties(frameElement->scrollingMode() , frameElement->marginWidth(), frameElement->marginHeight(), frameElement->allow Fullscreen())); 941 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram eElement->contentFrame()), WebFrameOwnerProperties(frameElement->scrollingMode() , frameElement->marginWidth(), frameElement->marginHeight(), frameElement->allow Fullscreen(), frameElement->delegatedPermissions()));
942 } 942 }
943 943
944 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) 944 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle)
945 { 945 {
946 m_webFrame->client()->willOpenWebSocket(handle); 946 m_webFrame->client()->willOpenWebSocket(handle);
947 } 947 }
948 948
949 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe erConnectionHandler* handler) 949 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe erConnectionHandler* handler)
950 { 950 {
951 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler); 951 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 } 1031 }
1032 1032
1033 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType() 1033 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType()
1034 { 1034 {
1035 if (m_webFrame->client()) 1035 if (m_webFrame->client())
1036 return m_webFrame->client()->getEffectiveConnectionType(); 1036 return m_webFrame->client()->getEffectiveConnectionType();
1037 return WebEffectiveConnectionType::TypeUnknown; 1037 return WebEffectiveConnectionType::TypeUnknown;
1038 } 1038 }
1039 1039
1040 } // namespace blink 1040 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | third_party/WebKit/Source/web/RemoteFrameOwner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698