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

Side by Side Diff: content/public/browser/render_process_host.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 (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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "base/supports_user_data.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "ipc/ipc_channel_proxy.h" 14 #include "ipc/ipc_channel_proxy.h"
14 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "ui/surface/transport_dib.h" 17 #include "ui/surface/transport_dib.h"
17 18
18 class GURL; 19 class GURL;
19 struct ViewMsg_SwapOut_Params; 20 struct ViewMsg_SwapOut_Params;
20 21
21 namespace base { 22 namespace base {
22 class TimeDelta; 23 class TimeDelta;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 class BrowserContext; 27 class BrowserContext;
27 class BrowserMessageFilter; 28 class BrowserMessageFilter;
28 class RenderWidgetHost; 29 class RenderWidgetHost;
29 class StoragePartition; 30 class StoragePartition;
30 31
31 typedef base::Thread* (*RendererMainThreadFactoryFunction)( 32 typedef base::Thread* (*RendererMainThreadFactoryFunction)(
32 const std::string& id); 33 const std::string& id);
33 34
34 // Interface that represents the browser side of the browser <-> renderer 35 // Interface that represents the browser side of the browser <-> renderer
35 // communication channel. There will generally be one RenderProcessHost per 36 // communication channel. There will generally be one RenderProcessHost per
36 // renderer process. 37 // renderer process.
37 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, 38 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
38 public IPC::Listener { 39 public IPC::Listener,
40 public base::SupportsUserData {
39 public: 41 public:
40 typedef IDMap<RenderProcessHost>::iterator iterator; 42 typedef IDMap<RenderProcessHost>::iterator iterator;
41 43
42 // Details for RENDERER_PROCESS_CLOSED notifications. 44 // Details for RENDERER_PROCESS_CLOSED notifications.
43 struct RendererClosedDetails { 45 struct RendererClosedDetails {
44 RendererClosedDetails(base::ProcessHandle handle, 46 RendererClosedDetails(base::ProcessHandle handle,
45 base::TerminationStatus status, 47 base::TerminationStatus status,
46 int exit_code) { 48 int exit_code) {
47 this->handle = handle; 49 this->handle = handle;
48 this->status = status; 50 this->status = status;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // module. 255 // module.
254 static size_t GetMaxRendererProcessCount(); 256 static size_t GetMaxRendererProcessCount();
255 257
256 static void RegisterRendererMainThreadFactory( 258 static void RegisterRendererMainThreadFactory(
257 RendererMainThreadFactoryFunction create); 259 RendererMainThreadFactoryFunction create);
258 }; 260 };
259 261
260 } // namespace content. 262 } // namespace content.
261 263
262 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/webrtc_logging_message_filter.cc ('k') | content/public/renderer/webrtc_log_message_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698