| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 const GURL& url); | 243 const GURL& url); |
| 244 | 244 |
| 245 static base::MessageLoop* GetInProcessRendererThreadForTesting(); | 245 static base::MessageLoop* GetInProcessRendererThreadForTesting(); |
| 246 | 246 |
| 247 // This forces a renderer that is running "in process" to shut down. | 247 // This forces a renderer that is running "in process" to shut down. |
| 248 static void ShutDownInProcessRenderer(); | 248 static void ShutDownInProcessRenderer(); |
| 249 | 249 |
| 250 static void RegisterRendererMainThreadFactory( | 250 static void RegisterRendererMainThreadFactory( |
| 251 RendererMainThreadFactoryFunction create); | 251 RendererMainThreadFactoryFunction create); |
| 252 | 252 |
| 253 // TODO(alokp): Remove after collecting crash data. |
| 254 // Temporary checks to verify that all shared workers are terminated. |
| 255 // It is suspected that shared workers prevent render process hosts |
| 256 // from shutting down: crbug.com/608049 |
| 257 static void CheckAllWorkersTerminated(); |
| 258 |
| 253 #if defined(OS_ANDROID) | 259 #if defined(OS_ANDROID) |
| 254 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { | 260 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { |
| 255 return browser_demuxer_android_; | 261 return browser_demuxer_android_; |
| 256 } | 262 } |
| 257 #endif | 263 #endif |
| 258 | 264 |
| 259 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { | 265 RenderFrameMessageFilter* render_frame_message_filter_for_testing() const { |
| 260 return render_frame_message_filter_.get(); | 266 return render_frame_message_filter_.get(); |
| 261 } | 267 } |
| 262 | 268 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 instance_weak_factory_; | 581 instance_weak_factory_; |
| 576 | 582 |
| 577 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 583 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 578 | 584 |
| 579 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 585 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 580 }; | 586 }; |
| 581 | 587 |
| 582 } // namespace content | 588 } // namespace content |
| 583 | 589 |
| 584 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 590 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |