| OLD | NEW |
| 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_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public ui::SelectFileDialog::Listener { | 27 public ui::SelectFileDialog::Listener { |
| 28 public: | 28 public: |
| 29 static WebRTCInternals* GetInstance(); | 29 static WebRTCInternals* GetInstance(); |
| 30 | 30 |
| 31 // This method is called when a PeerConnection is created. | 31 // This method is called when a PeerConnection is created. |
| 32 // |render_process_id| is the id of the render process (not OS pid), which is | 32 // |render_process_id| is the id of the render process (not OS pid), which is |
| 33 // needed because we might not be able to get the OS process id when the | 33 // needed because we might not be able to get the OS process id when the |
| 34 // render process terminates and we want to clean up. | 34 // render process terminates and we want to clean up. |
| 35 // |pid| is the renderer process id, |lid| is the renderer local id used to | 35 // |pid| is the renderer process id, |lid| is the renderer local id used to |
| 36 // identify a PeerConnection, |url| is the url of the tab owning the | 36 // identify a PeerConnection, |url| is the url of the tab owning the |
| 37 // PeerConnection, |servers| is the servers configuration, |constraints| is | 37 // PeerConnection, |rtc_configuration| is the serialized RTCConfiguration, |
| 38 // the media constraints used to initialize the PeerConnection. | 38 // |constraints| is the media constraints used to initialize the |
| 39 // PeerConnection. |
| 39 void OnAddPeerConnection(int render_process_id, | 40 void OnAddPeerConnection(int render_process_id, |
| 40 base::ProcessId pid, | 41 base::ProcessId pid, |
| 41 int lid, | 42 int lid, |
| 42 const std::string& url, | 43 const std::string& url, |
| 43 const std::string& servers, | 44 const std::string& rtc_configuration, |
| 44 const std::string& constraints); | 45 const std::string& constraints); |
| 45 | 46 |
| 46 // This method is called when PeerConnection is destroyed. | 47 // This method is called when PeerConnection is destroyed. |
| 47 // |pid| is the renderer process id, |lid| is the renderer local id. | 48 // |pid| is the renderer process id, |lid| is the renderer local id. |
| 48 void OnRemovePeerConnection(base::ProcessId pid, int lid); | 49 void OnRemovePeerConnection(base::ProcessId pid, int lid); |
| 49 | 50 |
| 50 // This method is called when a PeerConnection is updated. | 51 // This method is called when a PeerConnection is updated. |
| 51 // |pid| is the renderer process id, |lid| is the renderer local id, | 52 // |pid| is the renderer process id, |lid| is the renderer local id, |
| 52 // |type| is the update type, |value| is the detail of the update. | 53 // |type| is the update type, |value| is the detail of the update. |
| 53 void OnUpdatePeerConnection(base::ProcessId pid, | 54 void OnUpdatePeerConnection(base::ProcessId pid, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 164 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 164 | 165 |
| 165 // AEC dump (diagnostic echo canceller recording) state. | 166 // AEC dump (diagnostic echo canceller recording) state. |
| 166 bool aec_dump_enabled_; | 167 bool aec_dump_enabled_; |
| 167 base::FilePath aec_dump_file_path_; | 168 base::FilePath aec_dump_file_path_; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace content | 171 } // namespace content |
| 171 | 172 |
| 172 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ | 173 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
| OLD | NEW |