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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_thread_impl.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) 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 "content/renderer/render_process_impl.h" 5 #include "content/renderer/render_process_impl.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); 83 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
84 } 84 }
85 85
86 // Turn on cross-site document blocking for renderer processes. 86 // Turn on cross-site document blocking for renderer processes.
87 SiteIsolationPolicy::SetPolicyEnabled( 87 SiteIsolationPolicy::SetPolicyEnabled(
88 GetContentClient()->renderer()->ShouldEnableSiteIsolationPolicy()); 88 GetContentClient()->renderer()->ShouldEnableSiteIsolationPolicy());
89 } 89 }
90 90
91 RenderProcessImpl::~RenderProcessImpl() { 91 RenderProcessImpl::~RenderProcessImpl() {
92 #ifndef NDEBUG 92 #ifndef NDEBUG
93 int count = WebKit::WebFrame::instanceCount(); 93 int count = blink::WebFrame::instanceCount();
94 if (count) 94 if (count)
95 DLOG(ERROR) << "WebFrame LEAKED " << count << " TIMES"; 95 DLOG(ERROR) << "WebFrame LEAKED " << count << " TIMES";
96 #endif 96 #endif
97 97
98 GetShutDownEvent()->Signal(); 98 GetShutDownEvent()->Signal();
99 ClearTransportDIBCache(); 99 ClearTransportDIBCache();
100 } 100 }
101 101
102 bool RenderProcessImpl::InProcessPlugins() { 102 bool RenderProcessImpl::InProcessPlugins() {
103 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 103 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void RenderProcessImpl::ClearTransportDIBCache() { 255 void RenderProcessImpl::ClearTransportDIBCache() {
256 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 256 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
257 if (shared_mem_cache_[i]) { 257 if (shared_mem_cache_[i]) {
258 FreeTransportDIB(shared_mem_cache_[i]); 258 FreeTransportDIB(shared_mem_cache_[i]);
259 shared_mem_cache_[i] = NULL; 259 shared_mem_cache_[i] = NULL;
260 } 260 }
261 } 261 }
262 } 262 }
263 263
264 } // namespace content 264 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698