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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2286003002: Reland of Check that all shared workers are terminated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 const GURL& url); 239 const GURL& url);
240 240
241 static base::MessageLoop* GetInProcessRendererThreadForTesting(); 241 static base::MessageLoop* GetInProcessRendererThreadForTesting();
242 242
243 // This forces a renderer that is running "in process" to shut down. 243 // This forces a renderer that is running "in process" to shut down.
244 static void ShutDownInProcessRenderer(); 244 static void ShutDownInProcessRenderer();
245 245
246 static void RegisterRendererMainThreadFactory( 246 static void RegisterRendererMainThreadFactory(
247 RendererMainThreadFactoryFunction create); 247 RendererMainThreadFactoryFunction create);
248 248
249 // TODO(alokp): Remove after collecting crash data.
250 // Temporary checks to verify that all shared workers are terminated.
251 // It is suspected that shared workers prevent render process hosts
252 // from shutting down: crbug.com/608049
253 static void CheckAllWorkersTerminated();
254
249 #if defined(OS_ANDROID) 255 #if defined(OS_ANDROID)
250 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { 256 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() {
251 return browser_demuxer_android_; 257 return browser_demuxer_android_;
252 } 258 }
253 #endif 259 #endif
254 260
255 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { 261 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const {
256 return render_frame_message_filter_.get(); 262 return render_frame_message_filter_.get();
257 } 263 }
258 264
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 scoped_refptr<ResourceMessageFilter> resource_message_filter_; 534 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
529 535
530 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 536 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
531 537
532 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 538 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
533 }; 539 };
534 540
535 } // namespace content 541 } // namespace content
536 542
537 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 543 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_process_sub_thread.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698