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

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

Issue 2345863002: [Blink, RemotePlayback] Rename connect() to prompt() (Closed)
Patch Set: Rebase Created 4 years, 3 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 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 fea528a5eed8f922b516c95ce01746c3b1d93ff6..ead4c4c12459bb4689039784a2abae9bb581c6c3 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
@@ -36,7 +36,7 @@ public:
ExecutionContext* getExecutionContext() const override;
ScriptPromise getAvailability(ScriptState*);
- ScriptPromise connect(ScriptState*);
+ ScriptPromise prompt(ScriptState*);
String state() const;
@@ -50,15 +50,16 @@ public:
private:
explicit RemotePlayback(HTMLMediaElement&);
+ // WebRemotePlaybackClient implementation.
void stateChanged(WebRemotePlaybackState) override;
void availabilityChanged(bool available) override;
- void connectCancelled() override;
+ void promptCancelled() override;
WebRemotePlaybackState m_state;
bool m_availability;
HeapVector<Member<RemotePlaybackAvailability>> m_availabilityObjects;
Member<HTMLMediaElement> m_mediaElement;
- HeapVector<Member<ScriptPromiseResolver>> m_connectPromiseResolvers;
+ HeapVector<Member<ScriptPromiseResolver>> m_promptPromiseResolvers;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698