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

Unified Diff: content/renderer/media/user_media_client_impl.h

Issue 524363003: Changed name of MediaStreamImpl to UserMediaClientImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/renderer/media/user_media_client_impl.h
diff --git a/content/renderer/media/media_stream_impl.h b/content/renderer/media/user_media_client_impl.h
similarity index 94%
rename from content/renderer/media/media_stream_impl.h
rename to content/renderer/media/user_media_client_impl.h
index d96ef27416720bf06f1e215d9cef63099a2a9e54..465dad1db33caebecae44bcb17e8dc8ef1654567 100644
--- a/content/renderer/media/media_stream_impl.h
+++ b/content/renderer/media/user_media_client_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
-#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
+#ifndef CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_
+#define CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_
#include <string>
#include <vector>
@@ -33,23 +33,23 @@ class MediaStreamDispatcher;
class MediaStreamVideoSource;
class VideoCapturerDelegate;
-// MediaStreamImpl is a delegate for the Media Stream GetUserMedia API.
+// UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API.
// It ties together WebKit and MediaStreamManager
// (via MediaStreamDispatcher and MediaStreamDispatcherHost)
// in the browser process. It must be created, called and destroyed on the
// render thread.
-class CONTENT_EXPORT MediaStreamImpl
+class CONTENT_EXPORT UserMediaClientImpl
: public RenderFrameObserver,
NON_EXPORTED_BASE(public blink::WebUserMediaClient),
public MediaStreamDispatcherEventHandler,
NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
// |render_frame| and |dependency_factory| must outlive this instance.
- MediaStreamImpl(
+ UserMediaClientImpl(
RenderFrame* render_frame,
PeerConnectionDependencyFactory* dependency_factory,
scoped_ptr<MediaStreamDispatcher> media_stream_dispatcher);
- virtual ~MediaStreamImpl();
+ virtual ~UserMediaClientImpl();
MediaStreamDispatcher* media_stream_dispatcher() const {
return media_stream_dispatcher_.get();
@@ -230,7 +230,7 @@ class CONTENT_EXPORT MediaStreamImpl
// audio.
PeerConnectionDependencyFactory* const dependency_factory_;
- // MediaStreamImpl owns MediaStreamDispatcher instead of RenderFrameImpl
+ // UserMediaClientImpl owns MediaStreamDispatcher instead of RenderFrameImpl
// (or RenderFrameObserver) to ensure tear-down occurs in the right order.
const scoped_ptr<MediaStreamDispatcher> media_stream_dispatcher_;
@@ -243,11 +243,11 @@ class CONTENT_EXPORT MediaStreamImpl
// Note: This member must be the last to ensure all outstanding weak pointers
// are invalidated first.
- base::WeakPtrFactory<MediaStreamImpl> weak_factory_;
+ base::WeakPtrFactory<UserMediaClientImpl> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(MediaStreamImpl);
+ DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl);
};
} // namespace content
-#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_IMPL_H_
+#endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698