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

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

Issue 2154233003: Rewrite YouTube Flash embeds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests 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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 return ServiceWorkerLinkResource::create(owner); 1030 return ServiceWorkerLinkResource::create(owner);
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 // kdsilva
1041 bool FrameLoaderClientImpl::overrideEmbedInfo(String* url)
1042 {
1043 bool retVal = false;
1044 if (m_webFrame->client()) {
mlamouri (slow - plz ping) 2016/07/20 13:22:03 if (!m_webFrame->client()) return false;
kdsilva 2016/07/21 13:59:46 Acknowledged.
1045 WebString urlWstr = WebString(*url);
1046 retVal = m_webFrame->client()->overrideEmbedInfo(&urlWstr);
1047 *url = urlWstr;
1048 }
1049 return retVal;
1050 }
1051
1040 } // namespace blink 1052 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698