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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 19606: Unit test addition, cleanup for render_process/thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "chrome/renderer/render_thread.h" 10 #include "chrome/renderer/render_thread.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 IPC::Channel::MODE_CLIENT, this, NULL, owner_loop_, true, 117 IPC::Channel::MODE_CLIENT, this, NULL, owner_loop_, true,
118 RenderProcess::GetShutDownEvent())); 118 RenderProcess::GetShutDownEvent()));
119 119
120 #if defined(OS_WIN) 120 #if defined(OS_WIN)
121 // The renderer thread should wind-up COM. 121 // The renderer thread should wind-up COM.
122 CoInitialize(0); 122 CoInitialize(0);
123 #endif 123 #endif
124 124
125 visited_link_slave_ = new VisitedLinkSlave(); 125 visited_link_slave_ = new VisitedLinkSlave();
126 user_script_slave_ = new UserScriptSlave(); 126 user_script_slave_ = new UserScriptSlave();
127
128 // TODO(port)
129 #if defined(OS_WIN)
130 render_dns_master_.reset(new RenderDnsMaster()); 127 render_dns_master_.reset(new RenderDnsMaster());
131 #else
132 NOTIMPLEMENTED();
133 #endif
134 128
135 #ifdef IPC_MESSAGE_LOG_ENABLED 129 #ifdef IPC_MESSAGE_LOG_ENABLED
136 IPC::Logging::current()->SetIPCSender(this); 130 IPC::Logging::current()->SetIPCSender(this);
137 #endif 131 #endif
138 } 132 }
139 133
140 void RenderThread::CleanUp() { 134 void RenderThread::CleanUp() {
141 DCHECK(g_render_thread == this); 135 DCHECK(g_render_thread == this);
142 g_render_thread = NULL; 136 g_render_thread = NULL;
143 137
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void RenderThread::InformHostOfCacheStatsLater() { 276 void RenderThread::InformHostOfCacheStatsLater() {
283 // Rate limit informing the host of our cache stats. 277 // Rate limit informing the host of our cache stats.
284 if (!cache_stats_factory_->empty()) 278 if (!cache_stats_factory_->empty())
285 return; 279 return;
286 280
287 MessageLoop::current()->PostDelayedTask(FROM_HERE, 281 MessageLoop::current()->PostDelayedTask(FROM_HERE,
288 cache_stats_factory_->NewRunnableMethod( 282 cache_stats_factory_->NewRunnableMethod(
289 &RenderThread::InformHostOfCacheStats), 283 &RenderThread::InformHostOfCacheStats),
290 kCacheStatsDelayMS); 284 kCacheStatsDelayMS);
291 } 285 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698