| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |