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

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

Issue 7388: Remove throttling code from the Browser process and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/common/render_messages_internal.h ('k') | chrome/renderer/render_view.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 #include <windows.h> 5 #include <windows.h>
6 #include <algorithm> 6 #include <algorithm>
7 7
8 #include "chrome/renderer/render_thread.h" 8 #include "chrome/renderer/render_thread.h"
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // have to worry about thread-safety. 187 // have to worry about thread-safety.
188 RenderView::SetNextPageID(next_page_id); 188 RenderView::SetNextPageID(next_page_id);
189 } 189 }
190 190
191 void RenderThread::OnCreateNewView(HWND parent_hwnd, 191 void RenderThread::OnCreateNewView(HWND parent_hwnd,
192 HANDLE modal_dialog_event, 192 HANDLE modal_dialog_event,
193 const WebPreferences& webkit_prefs, 193 const WebPreferences& webkit_prefs,
194 int32 view_id) { 194 int32 view_id) {
195 // TODO(darin): once we have a RenderThread per RenderView, this will need to 195 // TODO(darin): once we have a RenderThread per RenderView, this will need to
196 // change to assert that we are not creating more than one view. 196 // change to assert that we are not creating more than one view.
197
198 RenderView::Create( 197 RenderView::Create(
199 parent_hwnd, modal_dialog_event, MSG_ROUTING_NONE, webkit_prefs, view_id); 198 parent_hwnd, modal_dialog_event, MSG_ROUTING_NONE, webkit_prefs,
199 new SharedRenderViewCounter(0), view_id);
200 } 200 }
201 201
202 void RenderThread::OnSetCacheCapacities(size_t min_dead_capacity, 202 void RenderThread::OnSetCacheCapacities(size_t min_dead_capacity,
203 size_t max_dead_capacity, 203 size_t max_dead_capacity,
204 size_t capacity) { 204 size_t capacity) {
205 CacheManager::SetCapacities(min_dead_capacity, max_dead_capacity, capacity); 205 CacheManager::SetCapacities(min_dead_capacity, max_dead_capacity, capacity);
206 } 206 }
207 207
208 void RenderThread::OnGetCacheResourceStats() { 208 void RenderThread::OnGetCacheResourceStats() {
209 CacheManager::ResourceTypeStats stats; 209 CacheManager::ResourceTypeStats stats;
(...skipping 10 matching lines...) Expand all
220 void RenderThread::InformHostOfCacheStatsLater() { 220 void RenderThread::InformHostOfCacheStatsLater() {
221 // Rate limit informing the host of our cache stats. 221 // Rate limit informing the host of our cache stats.
222 if (!cache_stats_factory_->empty()) 222 if (!cache_stats_factory_->empty())
223 return; 223 return;
224 224
225 MessageLoop::current()->PostDelayedTask(FROM_HERE, 225 MessageLoop::current()->PostDelayedTask(FROM_HERE,
226 cache_stats_factory_->NewRunnableMethod( 226 cache_stats_factory_->NewRunnableMethod(
227 &RenderThread::InformHostOfCacheStats), 227 &RenderThread::InformHostOfCacheStats),
228 kCacheStatsDelayMS); 228 kCacheStatsDelayMS);
229 } 229 }
230
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698