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

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

Issue 24544004: Remove the chrome namespace around ChromeContent[Renderer]Client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_process_observer.h ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698