OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |