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

Side by Side Diff: content/renderer/media/peer_connection_tracker.h

Issue 670683003: Standardize usage of virtual/override/final in content/renderer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 18 matching lines...) Expand all
29 namespace content { 29 namespace content {
30 class RTCMediaConstraints; 30 class RTCMediaConstraints;
31 class RTCPeerConnectionHandler; 31 class RTCPeerConnectionHandler;
32 32
33 // This class collects data about each peer connection, 33 // This class collects data about each peer connection,
34 // sends it to the browser process, and handles messages 34 // sends it to the browser process, and handles messages
35 // from the browser process. 35 // from the browser process.
36 class CONTENT_EXPORT PeerConnectionTracker : public RenderProcessObserver { 36 class CONTENT_EXPORT PeerConnectionTracker : public RenderProcessObserver {
37 public: 37 public:
38 PeerConnectionTracker(); 38 PeerConnectionTracker();
39 virtual ~PeerConnectionTracker(); 39 ~PeerConnectionTracker() override;
40 40
41 enum Source { 41 enum Source {
42 SOURCE_LOCAL, 42 SOURCE_LOCAL,
43 SOURCE_REMOTE 43 SOURCE_REMOTE
44 }; 44 };
45 45
46 enum Action { 46 enum Action {
47 ACTION_SET_LOCAL_DESCRIPTION, 47 ACTION_SET_LOCAL_DESCRIPTION,
48 ACTION_SET_REMOTE_DESCRIPTION, 48 ACTION_SET_REMOTE_DESCRIPTION,
49 ACTION_CREATE_OFFER, 49 ACTION_CREATE_OFFER,
50 ACTION_CREATE_ANSWER 50 ACTION_CREATE_ANSWER
51 }; 51 };
52 52
53 // RenderProcessObserver implementation. 53 // RenderProcessObserver implementation.
54 virtual bool OnControlMessageReceived(const IPC::Message& message) override; 54 bool OnControlMessageReceived(const IPC::Message& message) override;
55 55
56 // 56 //
57 // The following methods send an update to the browser process when a 57 // The following methods send an update to the browser process when a
58 // PeerConnection update happens. The caller should call the Track* methods 58 // PeerConnection update happens. The caller should call the Track* methods
59 // after calling RegisterPeerConnection and before calling 59 // after calling RegisterPeerConnection and before calling
60 // UnregisterPeerConnection, otherwise the Track* call has no effect. 60 // UnregisterPeerConnection, otherwise the Track* call has no effect.
61 // 61 //
62 62
63 // Sends an update when a PeerConnection has been created in Javascript. 63 // Sends an update when a PeerConnection has been created in Javascript.
64 // This should be called once and only once for each PeerConnection. 64 // This should be called once and only once for each PeerConnection.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // This keeps track of the next available local ID. 177 // This keeps track of the next available local ID.
178 int next_lid_; 178 int next_lid_;
179 179
180 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); 180 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker);
181 }; 181 };
182 182
183 } // namespace content 183 } // namespace content
184 184
185 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 185 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_identity_service.h ('k') | content/renderer/media/peer_connection_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698