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

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

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shutdown fix Created 5 years, 3 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 SiteIsolationStatsGatherer::SetEnabled( 67 SiteIsolationStatsGatherer::SetEnabled(
68 GetContentClient()->renderer()->ShouldGatherSiteIsolationStats()); 68 GetContentClient()->renderer()->ShouldGatherSiteIsolationStats());
69 } 69 }
70 70
71 RenderProcessImpl::~RenderProcessImpl() { 71 RenderProcessImpl::~RenderProcessImpl() {
72 #ifndef NDEBUG 72 #ifndef NDEBUG
73 int count = blink::WebFrame::instanceCount(); 73 int count = blink::WebFrame::instanceCount();
74 if (count) 74 if (count)
75 DLOG(ERROR) << "WebFrame LEAKED " << count << " TIMES"; 75 DLOG(ERROR) << "WebFrame LEAKED " << count << " TIMES";
76 #endif 76 #endif
77
78 GetShutDownEvent()->Signal();
reveman 2015/09/11 22:26:13 See similar change in ChildProcess::~ChildProcess.
79 } 77 }
80 78
81 void RenderProcessImpl::AddBindings(int bindings) { 79 void RenderProcessImpl::AddBindings(int bindings) {
82 enabled_bindings_ |= bindings; 80 enabled_bindings_ |= bindings;
83 } 81 }
84 82
85 int RenderProcessImpl::GetEnabledBindings() const { 83 int RenderProcessImpl::GetEnabledBindings() const {
86 return enabled_bindings_; 84 return enabled_bindings_;
87 } 85 }
88 86
89 } // namespace content 87 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698