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

Side by Side Diff: chrome/browser/media/webrtc_logging_handler_host.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
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_RENDERER_HOST_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
11 11
12 namespace content {
13
14 // WebRtcLoggingHandlerHost handles operations regarding the WebRTC logging: 12 // WebRtcLoggingHandlerHost handles operations regarding the WebRTC logging:
15 // opening and closing shared memory buffer that the handler in the renderer 13 // opening and closing shared memory buffer that the handler in the renderer
16 // process writes to. 14 // process writes to.
17 class WebRtcLoggingHandlerHost : public BrowserMessageFilter { 15 class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter {
18 public: 16 public:
19 WebRtcLoggingHandlerHost(); 17 WebRtcLoggingHandlerHost();
20 18
21 private: 19 private:
22 // BrowserMessageFilter implementation. 20 // BrowserMessageFilter implementation.
23 virtual void OnChannelClosing() OVERRIDE; 21 virtual void OnChannelClosing() OVERRIDE;
24 virtual void OnDestruct() const OVERRIDE; 22 virtual void OnDestruct() const OVERRIDE;
25 virtual bool OnMessageReceived(const IPC::Message& message, 23 virtual bool OnMessageReceived(const IPC::Message& message,
26 bool* message_was_ok) OVERRIDE; 24 bool* message_was_ok) OVERRIDE;
27 25
28 friend class BrowserThread; 26 friend class content::BrowserThread;
29 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; 27 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>;
30 28
31 virtual ~WebRtcLoggingHandlerHost(); 29 virtual ~WebRtcLoggingHandlerHost();
32 30
33 void OnOpenLog(const std::string& app_session_id, const std::string& app_url); 31 void OnOpenLog(const std::string& app_session_id, const std::string& app_url);
34 32
35 base::SharedMemory shared_memory_; 33 base::SharedMemory shared_memory_;
36 std::string app_session_id_; 34 std::string app_session_id_;
37 std::string app_url_; 35 std::string app_url_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); 37 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost);
40 }; 38 };
41 39
42 } // namespace content 40 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_
43
44 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/media/webrtc_logging_handler_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698