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