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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h

Issue 2475293003: [RemotePlayback] No monitoring on low-end devices (Closed)
Patch Set: Added the internals files Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
index d12c4da7cc8a72785eb432d9974f7fbc42e08f83..0af22d2f7ecbe891fa6609e462b5a47e8cf38ca8 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
@@ -73,6 +73,7 @@ class MODULES_EXPORT RemotePlayback final
private:
friend class V8RemotePlayback;
+ friend class InternalsRemotePlayback;
friend class RemotePlaybackTest;
explicit RemotePlayback(ScriptState*, HTMLMediaElement&);
@@ -92,6 +93,10 @@ class MODULES_EXPORT RemotePlayback final
void setV8ReferencesForCallbacks(v8::Isolate*,
const v8::Persistent<v8::Object>& wrapper);
+ void setIsLowEndDeviceForTesting(bool isLowEndDevice) {
+ m_isLowEndDevice = isLowEndDevice;
+ }
+
RefPtr<ScriptState> m_scriptState;
WebRemotePlaybackState m_state;
bool m_availability;
@@ -99,6 +104,7 @@ class MODULES_EXPORT RemotePlayback final
m_availabilityCallbacks;
Member<HTMLMediaElement> m_mediaElement;
Member<ScriptPromiseResolver> m_promptPromiseResolver;
+ bool m_isLowEndDevice;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698