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

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

Issue 14304004: Convert a bunch of test_shell_tests to content_browsertests. These are tests that depend on loading… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "content/browser/child_process_launcher.h" 16 #include "content/browser/child_process_launcher.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/public/browser/render_process_host.h" 18 #include "content/public/browser/render_process_host.h"
19 #include "ipc/ipc_channel_proxy.h" 19 #include "ipc/ipc_channel_proxy.h"
20 #include "ui/surface/transport_dib.h" 20 #include "ui/surface/transport_dib.h"
21 21
22 class CommandLine; 22 class CommandLine;
23 23
24 namespace base {
25 class MessageLoop;
26 }
27
24 namespace gfx { 28 namespace gfx {
25 class Size; 29 class Size;
26 } 30 }
27 31
28 namespace content { 32 namespace content {
29 class GpuMessageFilter; 33 class GpuMessageFilter;
30 class PeerConnectionTrackerHost; 34 class PeerConnectionTrackerHost;
31 class RendererMainThread; 35 class RendererMainThread;
32 class RenderWidgetHelper; 36 class RenderWidgetHelper;
33 class RenderWidgetHost; 37 class RenderWidgetHost;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Registers the given |process| to be used for any instance of |url| 171 // Registers the given |process| to be used for any instance of |url|
168 // within |browser_context|. 172 // within |browser_context|.
169 // This should only be used for process-per-site mode, which can be enabled 173 // This should only be used for process-per-site mode, which can be enabled
170 // globally with a command line flag or per-site, as determined by 174 // globally with a command line flag or per-site, as determined by
171 // SiteInstanceImpl::ShouldUseProcessPerSite. 175 // SiteInstanceImpl::ShouldUseProcessPerSite.
172 static void RegisterProcessHostForSite( 176 static void RegisterProcessHostForSite(
173 BrowserContext* browser_context, 177 BrowserContext* browser_context,
174 RenderProcessHost* process, 178 RenderProcessHost* process,
175 const GURL& url); 179 const GURL& url);
176 180
181 static base::MessageLoop* GetInProcessRendererThreadForTesting();
182
177 protected: 183 protected:
178 // A proxy for our IPC::Channel that lives on the IO thread (see 184 // A proxy for our IPC::Channel that lives on the IO thread (see
179 // browser_process.h) 185 // browser_process.h)
180 scoped_ptr<IPC::ChannelProxy> channel_; 186 scoped_ptr<IPC::ChannelProxy> channel_;
181 187
182 // The registered render widget hosts. When this list is empty or all NULL, 188 // The registered render widget hosts. When this list is empty or all NULL,
183 // we should delete ourselves 189 // we should delete ourselves
184 IDMap<RenderWidgetHost> render_widget_hosts_; 190 IDMap<RenderWidgetHost> render_widget_hosts_;
185 191
186 // True if fast shutdown has been performed on this RPH. 192 // True if fast shutdown has been performed on this RPH.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Forwards messages between WebRTCInternals in the browser process 330 // Forwards messages between WebRTCInternals in the browser process
325 // and PeerConnectionTracker in the renderer process. 331 // and PeerConnectionTracker in the renderer process.
326 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; 332 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_;
327 333
328 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 334 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
329 }; 335 };
330 336
331 } // namespace content 337 } // namespace content
332 338
333 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 339 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698