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

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

Issue 119191: Add an extension to expose some primitives to JS for doing ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/extensions/v8/benchmarking_extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/extensions/v8/benchmarking_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698