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

Side by Side Diff: chrome/renderer/media/chrome_webrtc_log_message_delegate.h

Issue 23691066: Hook up WebRTC logging extension API to the underlying functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
OLDNEW
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 CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_
6 #define CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ 6 #define CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 15 matching lines...) Expand all
26 : public content::WebRtcLogMessageDelegate, 26 : public content::WebRtcLogMessageDelegate,
27 public base::NonThreadSafe { 27 public base::NonThreadSafe {
28 public: 28 public:
29 ChromeWebRtcLogMessageDelegate( 29 ChromeWebRtcLogMessageDelegate(
30 const scoped_refptr<base::MessageLoopProxy>& io_message_loop, 30 const scoped_refptr<base::MessageLoopProxy>& io_message_loop,
31 WebRtcLoggingMessageFilter* message_filter); 31 WebRtcLoggingMessageFilter* message_filter);
32 32
33 virtual ~ChromeWebRtcLogMessageDelegate(); 33 virtual ~ChromeWebRtcLogMessageDelegate();
34 34
35 // content::WebRtcLogMessageDelegate implementation. 35 // content::WebRtcLogMessageDelegate implementation.
36 virtual void InitLogging(const std::string& app_session_id,
37 const std::string& app_url) OVERRIDE;
38 virtual void LogMessage(const std::string& message) OVERRIDE; 36 virtual void LogMessage(const std::string& message) OVERRIDE;
39 37
40 void OnFilterRemoved(); 38 void OnFilterRemoved();
41 39
42 void OnLogOpened(base::SharedMemoryHandle handle, uint32 length); 40 void OnStartLogging(base::SharedMemoryHandle handle, uint32 length);
43 void OnOpenLogFailed(); 41 void OnStopLogging();
44 42
45 private: 43 private:
46 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 44 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
47 scoped_ptr<base::SharedMemory> shared_memory_; 45 scoped_ptr<base::SharedMemory> shared_memory_;
48 scoped_ptr<PartialCircularBuffer> circular_buffer_; 46 scoped_ptr<PartialCircularBuffer> circular_buffer_;
49 47
50 WebRtcLoggingMessageFilter* message_filter_; 48 WebRtcLoggingMessageFilter* message_filter_;
51 bool log_initialized_;
52 49
53 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate); 50 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate);
54 }; 51 };
55 52
56 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ 53 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/common/media/webrtc_logging_messages.h ('k') | chrome/renderer/media/chrome_webrtc_log_message_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698