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 | |
255 #if defined(OS_ANDROID) | 249 #if defined(OS_ANDROID) |
256 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { | 250 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { |
257 return browser_demuxer_android_; | 251 return browser_demuxer_android_; |
258 } | 252 } |
259 #endif | 253 #endif |
260 | 254 |
261 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { | 255 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { |
262 return render_frame_message_filter_.get(); | 256 return render_frame_message_filter_.get(); |
263 } | 257 } |
264 | 258 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 scoped_refptr<ResourceMessageFilter> resource_message_filter_; | 528 scoped_refptr<ResourceMessageFilter> resource_message_filter_; |
535 | 529 |
536 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 530 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
537 | 531 |
538 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 532 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
539 }; | 533 }; |
540 | 534 |
541 } // namespace content | 535 } // namespace content |
542 | 536 |
543 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 537 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |