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

Side by Side Diff: content/public/renderer/webrtc_log_message_delegate.h

Issue 15741003: Moving WebRTC logging related files from content to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 // This interface is implemented by a handler in the embedder and used for
15 // initializing the logging and passing log messages to the handler. The
16 // purpose is to forward mainly libjingle log messages to embedder (besides
17 // the ordinary logging stream) that will be used for diagnostic purposes.
18 class WebRtcLogMessageDelegate {
19 public:
20 // Tells the handler to initialize WebRTC logging. |app_session_id| is set
21 // by the Javascript application. |app_url| is the Javascript application URL.
22 virtual void InitLogging(const std::string& app_session_id,
23 const std::string& app_url) = 0;
24
25 // Pass a diagnostic WebRTC log message.
26 virtual void LogMessage(const std::string& message) = 0;
27
28 protected:
29 virtual ~WebRtcLogMessageDelegate() {}
30 };
31
32 // Must be called on IO thread.
33 CONTENT_EXPORT void InitWebRtcLoggingDelegate(
34 WebRtcLogMessageDelegate* delegate);
35
36 } // namespace content
37
38 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/media/media_stream_dependency_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698