summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 17:33:22 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 17:33:22 +0000
commit9291ed107d2031cea55f324431ffee8d7bae1416 (patch)
tree5c1d8e6d992aa324f099062b0f85e3945fdfe761 /chrome/renderer/render_thread.h
parentfefa8b29191ffd7730f7d3428697408bf979e6ee (diff)
downloadchromium_src-9291ed107d2031cea55f324431ffee8d7bae1416.zip
chromium_src-9291ed107d2031cea55f324431ffee8d7bae1416.tar.gz
chromium_src-9291ed107d2031cea55f324431ffee8d7bae1416.tar.bz2
Revert 21355 because it might be causing all the new
crashes on reliability. It also seems to be causing valgrind error. Original change: Switch the first thread in a child process to be the main thread, and make theIO thread be the second thread. The change is needed for plugins on mac. Review URL: http://codereview.chromium.org/159274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.h')
-rw-r--r--chrome/renderer/render_thread.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h
index d2a1fcd..5ced914 100644
--- a/chrome/renderer/render_thread.h
+++ b/chrome/renderer/render_thread.h
@@ -20,7 +20,7 @@ class AppCacheDispatcher;
class DevToolsAgentFilter;
class FilePath;
class ListValue;
-
+class NotificationService;
class RenderDnsMaster;
class RendererHistogram;
class RendererWebKitClientImpl;
@@ -114,7 +114,9 @@ class RenderThread : public RenderThreadBase,
private:
virtual void OnControlMessageReceived(const IPC::Message& msg);
- void Init();
+ // Called by the thread base class.
+ virtual void Init();
+ virtual void CleanUp();
void OnUpdateVisitedLinks(base::SharedMemoryHandle table);
void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints);
@@ -152,15 +154,24 @@ class RenderThread : public RenderThreadBase,
void EnsureWebKitInitialized();
// These objects live solely on the render thread.
- scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_;
scoped_ptr<VisitedLinkSlave> visited_link_slave_;
+
scoped_ptr<UserScriptSlave> user_script_slave_;
+
scoped_ptr<RenderDnsMaster> dns_master_;
- scoped_ptr<AppCacheDispatcher> app_cache_dispatcher_;
- scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_;
+
scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_;
+
+ scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_;
+
+ scoped_ptr<NotificationService> notification_service_;
+
scoped_ptr<RendererWebKitClientImpl> webkit_client_;
+ scoped_ptr<AppCacheDispatcher> app_cache_dispatcher_;
+
+ scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_;
+
#if defined(OS_POSIX)
scoped_refptr<IPC::ChannelProxy::MessageFilter>
suicide_on_channel_error_filter_;