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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 2154233003: Rewrite YouTube Flash embeds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 4 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 enum SuddenTerminationDisablerType { 265 enum SuddenTerminationDisablerType {
266 BeforeUnloadHandler, 266 BeforeUnloadHandler,
267 UnloadHandler, 267 UnloadHandler,
268 }; 268 };
269 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 269 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
270 270
271 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 271 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
272 272
273 // Effective connection type when this frame was loaded. 273 // Effective connection type when this frame was loaded.
274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
275
276 // Overwrites the given URL to use an HTML5 video player if possible.
mlamouri (slow - plz ping) 2016/08/01 13:43:59 s/video player/embed/
kdsilva 2016/08/02 15:34:46 Done.
277 // An empty string is returned if the URL is not overriden.
278 virtual String OverrideFlashEmbedWithHTML(const String&) { return ""; }
dcheng 2016/08/01 14:50:34 Please pass URLs as KURL and WebURL: Document::com
kdsilva 2016/08/02 15:34:46 Done.
275 }; 279 };
276 280
277 } // namespace blink 281 } // namespace blink
278 282
279 #endif // FrameLoaderClient_h 283 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698