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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 1853543002: Add -ifsameorigin to autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay
Patch Set: irebased. Created 4 years, 7 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 { 307 {
308 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord); 308 return m_element->shouldAutoplay(RecordMetricsBehavior::DoNotRecord);
309 } 309 }
310 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem ent(); } 310 bool isHTMLVideoElement() const override { return m_element->isHTMLVideoElem ent(); }
311 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem ent(); } 311 bool isHTMLAudioElement() const override { return m_element->isHTMLAudioElem ent(); }
312 312
313 // Document 313 // Document
314 bool isLegacyViewportType() override; 314 bool isLegacyViewportType() override;
315 PageVisibilityState pageVisibilityState() const override; 315 PageVisibilityState pageVisibilityState() const override;
316 String autoplayExperimentMode() const override; 316 String autoplayExperimentMode() const override;
317 LocalFrame* frame() const override { return m_element->document().frame(); }
317 318
318 // LayoutObject 319 // LayoutObject
319 void setRequestPositionUpdates(bool) override; 320 void setRequestPositionUpdates(bool) override;
320 IntRect absoluteBoundingBoxRect() const override; 321 IntRect absoluteBoundingBoxRect() const override;
321 322
322 DEFINE_INLINE_VIRTUAL_TRACE() 323 DEFINE_INLINE_VIRTUAL_TRACE()
323 { 324 {
324 visitor->trace(m_element); 325 visitor->trace(m_element);
325 Client::trace(visitor); 326 Client::trace(visitor);
326 } 327 }
(...skipping 3617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3944 } 3945 }
3945 3946
3946 #if !ENABLE(OILPAN) 3947 #if !ENABLE(OILPAN)
3947 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() 3948 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr()
3948 { 3949 {
3949 return m_weakPtrFactory.createWeakPtr(); 3950 return m_weakPtrFactory.createWeakPtr();
3950 } 3951 }
3951 #endif 3952 #endif
3952 3953
3953 } // namespace blink 3954 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698