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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 233 } |
234 | 234 |
235 void NotifyCacheStats() { | 235 void NotifyCacheStats() { |
236 // Update the browser about our cache | 236 // Update the browser about our cache |
237 // NOTE: Since this can be called from the plugin process, we might not have | 237 // NOTE: Since this can be called from the plugin process, we might not have |
238 // a RenderThread. Do nothing in that case. | 238 // a RenderThread. Do nothing in that case. |
239 if (!IsPluginProcess()) | 239 if (!IsPluginProcess()) |
240 RenderThread::current()->InformHostOfCacheStatsLater(); | 240 RenderThread::current()->InformHostOfCacheStatsLater(); |
241 } | 241 } |
242 | 242 |
| 243 void CloseIdleConnections() { |
| 244 RenderThread::current()->CloseIdleConnections(); |
| 245 } |
| 246 |
| 247 void SetCacheMode(bool enabled) { |
| 248 RenderThread::current()->SetCacheMode(enabled); |
| 249 } |
243 | 250 |
244 } // namespace webkit_glue | 251 } // namespace webkit_glue |
OLD | NEW |