| 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" |
| 11 | 11 |
| 12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
| 13 #include "chrome/common/chrome_plugin_lib.h" | 13 #include "chrome/common/chrome_plugin_lib.h" |
| 14 #include "chrome/common/ipc_logging.h" | 14 #include "chrome/common/ipc_logging.h" |
| 15 #include "chrome/common/render_messages.h" |
| 15 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
| 16 // TODO(port) | 17 // TODO(port) |
| 17 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 18 #include "chrome/plugin/plugin_channel.h" | 19 #include "chrome/plugin/plugin_channel.h" |
| 19 #else | 20 #else |
| 20 #include <vector> | 21 #include <vector> |
| 21 #include "base/scoped_handle.h" | 22 #include "base/scoped_handle.h" |
| 22 #include "chrome/plugin/plugin_channel_base.h" | 23 #include "chrome/plugin/plugin_channel_base.h" |
| 23 #include "webkit/glue/weburlrequest.h" | 24 #include "webkit/glue/weburlrequest.h" |
| 24 #endif | 25 #endif |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 void RenderThread::InformHostOfCacheStatsLater() { | 283 void RenderThread::InformHostOfCacheStatsLater() { |
| 283 // Rate limit informing the host of our cache stats. | 284 // Rate limit informing the host of our cache stats. |
| 284 if (!cache_stats_factory_->empty()) | 285 if (!cache_stats_factory_->empty()) |
| 285 return; | 286 return; |
| 286 | 287 |
| 287 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 288 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
| 288 cache_stats_factory_->NewRunnableMethod( | 289 cache_stats_factory_->NewRunnableMethod( |
| 289 &RenderThread::InformHostOfCacheStats), | 290 &RenderThread::InformHostOfCacheStats), |
| 290 kCacheStatsDelayMS); | 291 kCacheStatsDelayMS); |
| 291 } | 292 } |
| OLD | NEW |