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

Side by Side Diff: trunk/src/content/browser/renderer_host/render_process_host_impl.h

Issue 132233058: Revert 247164 "Implement browser-side logging to WebRtc log" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; 117 virtual IPC::ChannelProxy* GetChannel() OVERRIDE;
118 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; 118 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE;
119 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; 119 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE;
120 virtual bool FastShutdownStarted() const OVERRIDE; 120 virtual bool FastShutdownStarted() const OVERRIDE;
121 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; 121 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE;
122 virtual void ResumeRequestsForView(int route_id) OVERRIDE; 122 virtual void ResumeRequestsForView(int route_id) OVERRIDE;
123 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; 123 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE;
124 #if defined(ENABLE_WEBRTC) 124 #if defined(ENABLE_WEBRTC)
125 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; 125 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
126 virtual void DisableAecDump() OVERRIDE; 126 virtual void DisableAecDump() OVERRIDE;
127 virtual void SetWebRtcLogMessageCallback(
128 base::Callback<void(const std::string&)> callback) OVERRIDE;
129 #endif 127 #endif
130 128
131 // IPC::Sender via RenderProcessHost. 129 // IPC::Sender via RenderProcessHost.
132 virtual bool Send(IPC::Message* msg) OVERRIDE; 130 virtual bool Send(IPC::Message* msg) OVERRIDE;
133 131
134 // IPC::Listener via RenderProcessHost. 132 // IPC::Listener via RenderProcessHost.
135 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 133 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
136 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 134 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
137 virtual void OnChannelError() OVERRIDE; 135 virtual void OnChannelError() OVERRIDE;
138 136
(...skipping 21 matching lines...) Expand all
160 void BeginFrameSubscription( 158 void BeginFrameSubscription(
161 int route_id, 159 int route_id,
162 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 160 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
163 void EndFrameSubscription(int route_id); 161 void EndFrameSubscription(int route_id);
164 162
165 scoped_refptr<GeolocationDispatcherHost> 163 scoped_refptr<GeolocationDispatcherHost>
166 geolocation_dispatcher_host() const { 164 geolocation_dispatcher_host() const {
167 return make_scoped_refptr(geolocation_dispatcher_host_); 165 return make_scoped_refptr(geolocation_dispatcher_host_);
168 } 166 }
169 167
170 #if defined(ENABLE_WEBRTC)
171 // Fires the webrtc log message callback with |message|, if callback is set.
172 void WebRtcLogMessage(const std::string& message);
173 #endif
174
175 // Register/unregister the host identified by the host id in the global host 168 // Register/unregister the host identified by the host id in the global host
176 // list. 169 // list.
177 static void RegisterHost(int host_id, RenderProcessHost* host); 170 static void RegisterHost(int host_id, RenderProcessHost* host);
178 static void UnregisterHost(int host_id); 171 static void UnregisterHost(int host_id);
179 172
180 // Implementation of FilterURL below that can be shared with the mock class. 173 // Implementation of FilterURL below that can be shared with the mock class.
181 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); 174 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url);
182 175
183 // Returns true if |host| is suitable for launching a new view with |site_url| 176 // Returns true if |host| is suitable for launching a new view with |site_url|
184 // in the given |browser_context|. 177 // in the given |browser_context|.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 382
390 scoped_refptr<AudioRendererHost> audio_renderer_host_; 383 scoped_refptr<AudioRendererHost> audio_renderer_host_;
391 384
392 #if defined(OS_ANDROID) 385 #if defined(OS_ANDROID)
393 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 386 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
394 #endif 387 #endif
395 388
396 // Message filter for geolocation messages. 389 // Message filter for geolocation messages.
397 GeolocationDispatcherHost* geolocation_dispatcher_host_; 390 GeolocationDispatcherHost* geolocation_dispatcher_host_;
398 391
399 #if defined(ENABLE_WEBRTC)
400 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
401 #endif
402
403 // Lives on the browser's ChildThread. 392 // Lives on the browser's ChildThread.
404 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 393 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
405 394
406 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 395 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
407 }; 396 };
408 397
409 } // namespace content 398 } // namespace content
410 399
411 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 400 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698