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

Unified Diff: third_party/WebKit/Source/web/UserMediaClientImpl.h

Issue 2206533003: Refactor lifetime management of UserMediaController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/UserMediaClientImpl.h
diff --git a/third_party/WebKit/Source/web/UserMediaClientImpl.h b/third_party/WebKit/Source/web/UserMediaClientImpl.h
index 297f9fd64ea80ac12c5c30de504277339059a83f..375cc3e2bf9bb1d45a7d1619d5a6890f6cb025e3 100644
--- a/third_party/WebKit/Source/web/UserMediaClientImpl.h
+++ b/third_party/WebKit/Source/web/UserMediaClientImpl.h
@@ -44,7 +44,10 @@ class WebLocalFrameImpl;
class UserMediaClientImpl final : public UserMediaClient {
public:
- explicit UserMediaClientImpl(WebLocalFrameImpl*);
+ static std::unique_ptr<UserMediaClientImpl> create(WebUserMediaClient* client)
+ {
+ return wrapUnique(new UserMediaClientImpl(client));
+ }
// UserMediaClient ----------------------------------------------
void requestUserMedia(UserMediaRequest*) override;
@@ -54,7 +57,7 @@ public:
void requestSources(MediaStreamTrackSourcesRequest*) override;
void setMediaDeviceChangeObserver(MediaDevices*) override;
private:
- UserMediaClientImpl();
+ explicit UserMediaClientImpl(WebUserMediaClient*);
WebUserMediaClient* m_client;
};

Powered by Google App Engine
This is Rietveld 408576698