OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/chrome_render_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/allocator/allocator_extension.h" | 10 #include "base/allocator/allocator_extension.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 RenderThread::Get()->Send(new ChromeViewHostMsg_V8HeapStats( | 246 RenderThread::Get()->Send(new ChromeViewHostMsg_V8HeapStats( |
247 total_bytes_, used_bytes_)); | 247 total_bytes_, used_bytes_)); |
248 ++round_id_; | 248 ++round_id_; |
249 } | 249 } |
250 | 250 |
251 } // namespace | 251 } // namespace |
252 | 252 |
253 bool ChromeRenderProcessObserver::is_incognito_process_ = false; | 253 bool ChromeRenderProcessObserver::is_incognito_process_ = false; |
254 | 254 |
255 ChromeRenderProcessObserver::ChromeRenderProcessObserver( | 255 ChromeRenderProcessObserver::ChromeRenderProcessObserver( |
256 chrome::ChromeContentRendererClient* client) | 256 ChromeContentRendererClient* client) |
257 : client_(client), | 257 : client_(client), |
258 clear_cache_pending_(false), | 258 clear_cache_pending_(false), |
259 webkit_initialized_(false), | 259 webkit_initialized_(false), |
260 pending_cache_min_dead_capacity_(0), | 260 pending_cache_min_dead_capacity_(0), |
261 pending_cache_max_dead_capacity_(0), | 261 pending_cache_max_dead_capacity_(0), |
262 pending_cache_capacity_(kUnitializedCacheCapacity) { | 262 pending_cache_capacity_(kUnitializedCacheCapacity) { |
263 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 263 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
264 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 264 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
265 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 265 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
266 } | 266 } |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 if (clear_cache_pending_ && webkit_initialized_) { | 443 if (clear_cache_pending_ && webkit_initialized_) { |
444 clear_cache_pending_ = false; | 444 clear_cache_pending_ = false; |
445 WebCache::clear(); | 445 WebCache::clear(); |
446 } | 446 } |
447 } | 447 } |
448 | 448 |
449 const RendererContentSettingRules* | 449 const RendererContentSettingRules* |
450 ChromeRenderProcessObserver::content_setting_rules() const { | 450 ChromeRenderProcessObserver::content_setting_rules() const { |
451 return &content_setting_rules_; | 451 return &content_setting_rules_; |
452 } | 452 } |
OLD | NEW |