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

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

Issue 10071038: RefCounted types should not have public destructors, content/browser part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/media_stream_impl.h
diff --git a/content/renderer/media/media_stream_impl.h b/content/renderer/media/media_stream_impl.h
index 7a59582d9a4feaa267dc8ca0f2f567a2f355144f..54d674981749708f33650667cc152c382c0c00aa 100644
--- a/content/renderer/media/media_stream_impl.h
+++ b/content/renderer/media/media_stream_impl.h
@@ -70,7 +70,6 @@ class CONTENT_EXPORT MediaStreamImpl
content::P2PSocketDispatcher* p2p_socket_dispatcher,
VideoCaptureImplManager* vc_manager,
MediaStreamDependencyFactory* dependency_factory);
- virtual ~MediaStreamImpl();
virtual WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
WebKit::WebPeerConnectionHandlerClient* client);
@@ -115,6 +114,10 @@ class CONTENT_EXPORT MediaStreamImpl
const media_stream::StreamDeviceInfo& device_info) OVERRIDE;
virtual void OnDeviceOpenFailed(int request_id) OVERRIDE;
+ protected:
+ friend class base::RefCountedThreadSafe<MediaStreamImpl>;
+ virtual ~MediaStreamImpl();
+
private:
FRIEND_TEST_ALL_PREFIXES(MediaStreamImplTest, Basic);

Powered by Google App Engine
This is Rietveld 408576698