OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_WEBRTC_LOGGING_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_H_ |
6 #define CONTENT_RENDERER_WEBRTC_LOGGING_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 // This function will add |message| to the diagnostic WebRTC log, if started. | 12 // This function will add |message| to the diagnostic WebRTC log, if started. |
13 // Otherwise it will be ignored. Note that this log may be uploaded to a | 13 // Otherwise it will be ignored. Note that this log may be uploaded to a |
14 // server by the embedder - no sensitive information should be logged. May be | 14 // server by the embedder - no sensitive information should be logged. May be |
15 // called on any thread. | 15 // called on any thread. |
16 // TODO(grunell): Create a macro for adding log messages. Messages should | 16 // TODO(grunell): Create a macro for adding log messages. Messages should |
17 // probably also go to the ordinary logging stream. | 17 // probably also go to the ordinary logging stream. |
18 void WebRtcLogMessage(const std::string& message); | 18 void WebRtcLogMessage(const std::string& message); |
19 | 19 |
20 } // namespace content | 20 } // namespace content |
21 | 21 |
22 #endif // CONTENT_RENDERER_WEBRTC_LOGGING_H_ | 22 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_H_ |
OLD | NEW |