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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 const GURL& url); | 237 const GURL& url); |
238 | 238 |
239 static base::MessageLoop* GetInProcessRendererThreadForTesting(); | 239 static base::MessageLoop* GetInProcessRendererThreadForTesting(); |
240 | 240 |
241 // This forces a renderer that is running "in process" to shut down. | 241 // This forces a renderer that is running "in process" to shut down. |
242 static void ShutDownInProcessRenderer(); | 242 static void ShutDownInProcessRenderer(); |
243 | 243 |
244 static void RegisterRendererMainThreadFactory( | 244 static void RegisterRendererMainThreadFactory( |
245 RendererMainThreadFactoryFunction create); | 245 RendererMainThreadFactoryFunction create); |
246 | 246 |
247 // TODO(alokp): Remove after collecting crash data. | |
248 // Temporary checks to verify that all shared workers are terminated. | |
horo
2016/08/09 04:03:24
Nit: s/shared workers/shared workers and service w
| |
249 // It is suspected that shared workers prevent render process hosts | |
250 // from shutting down: crbug.com/608049 | |
251 static void CheckAllWorkersTerminated(); | |
252 | |
247 #if defined(OS_ANDROID) | 253 #if defined(OS_ANDROID) |
248 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { | 254 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { |
249 return browser_demuxer_android_; | 255 return browser_demuxer_android_; |
250 } | 256 } |
251 #endif | 257 #endif |
252 | 258 |
253 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { | 259 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { |
254 return render_frame_message_filter_.get(); | 260 return render_frame_message_filter_.get(); |
255 } | 261 } |
256 | 262 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
527 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 533 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
528 | 534 |
529 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 535 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
530 | 536 |
531 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 537 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
532 }; | 538 }; |
533 | 539 |
534 } // namespace content | 540 } // namespace content |
535 | 541 |
536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 542 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |