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

Side by Side Diff: Source/core/platform/mediastream/MediaStreamDescriptor.h

Issue 47613002: Use FINAL macro for classes whose virtual destructor was removed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class MediaStreamDescriptorClient { 42 class MediaStreamDescriptorClient {
43 public: 43 public:
44 virtual ~MediaStreamDescriptorClient() { } 44 virtual ~MediaStreamDescriptorClient() { }
45 45
46 virtual void trackEnded() = 0; 46 virtual void trackEnded() = 0;
47 virtual void streamEnded() = 0; 47 virtual void streamEnded() = 0;
48 virtual void addRemoteTrack(MediaStreamComponent*) = 0; 48 virtual void addRemoteTrack(MediaStreamComponent*) = 0;
49 virtual void removeRemoteTrack(MediaStreamComponent*) = 0; 49 virtual void removeRemoteTrack(MediaStreamComponent*) = 0;
50 }; 50 };
51 51
52 class MediaStreamDescriptor : public RefCounted<MediaStreamDescriptor> { 52 class MediaStreamDescriptor FINAL : public RefCounted<MediaStreamDescriptor> {
53 public: 53 public:
54 class ExtraData : public RefCounted<ExtraData> { 54 class ExtraData : public RefCounted<ExtraData> {
55 public: 55 public:
56 virtual ~ExtraData() { } 56 virtual ~ExtraData() { }
57 }; 57 };
58 58
59 static PassRefPtr<MediaStreamDescriptor> create(const MediaStreamSourceVecto r& audioSources, const MediaStreamSourceVector& videoSources); 59 static PassRefPtr<MediaStreamDescriptor> create(const MediaStreamSourceVecto r& audioSources, const MediaStreamSourceVector& videoSources);
60 60
61 static PassRefPtr<MediaStreamDescriptor> create(const String& id, const Medi aStreamComponentVector& audioComponents, const MediaStreamComponentVector& video Components); 61 static PassRefPtr<MediaStreamDescriptor> create(const String& id, const Medi aStreamComponentVector& audioComponents, const MediaStreamComponentVector& video Components);
62 62
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool m_ended; 96 bool m_ended;
97 97
98 RefPtr<ExtraData> m_extraData; 98 RefPtr<ExtraData> m_extraData;
99 }; 99 };
100 100
101 typedef Vector<RefPtr<MediaStreamDescriptor> > MediaStreamDescriptorVector; 101 typedef Vector<RefPtr<MediaStreamDescriptor> > MediaStreamDescriptorVector;
102 102
103 } // namespace WebCore 103 } // namespace WebCore
104 104
105 #endif // MediaStreamDescriptor_h 105 #endif // MediaStreamDescriptor_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/skia/OpaqueRegionSkia.h ('k') | Source/core/platform/mediastream/RTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698