Chromium Code Reviews| 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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 213 const GURL& url); | 213 const GURL& url); |
| 214 | 214 |
| 215 static base::MessageLoop* GetInProcessRendererThreadForTesting(); | 215 static base::MessageLoop* GetInProcessRendererThreadForTesting(); |
| 216 | 216 |
| 217 // This forces a renderer that is running "in process" to shut down. | 217 // This forces a renderer that is running "in process" to shut down. |
| 218 static void ShutDownInProcessRenderer(); | 218 static void ShutDownInProcessRenderer(); |
| 219 | 219 |
| 220 static void RegisterRendererMainThreadFactory( | 220 static void RegisterRendererMainThreadFactory( |
| 221 RendererMainThreadFactoryFunction create); | 221 RendererMainThreadFactoryFunction create); |
| 222 | 222 |
| 223 // Gets the next available routing id of the proccess on IO thread. | |
|
kinuko
2014/04/28 07:09:52
Please explicitly note that this method needs to b
horo
2014/04/28 07:29:42
Done.
| |
| 224 // Returns MSG_ROUTING_NONE if failed. | |
| 225 // If the caller is on UI thread it can directly call GetNextRoutingID. | |
| 226 static int GetNextRoutingIDForProcess(int render_process_id); | |
| 227 | |
| 223 #if defined(OS_ANDROID) | 228 #if defined(OS_ANDROID) |
| 224 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { | 229 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { |
| 225 return browser_demuxer_android_; | 230 return browser_demuxer_android_; |
| 226 } | 231 } |
| 227 #endif | 232 #endif |
| 228 | 233 |
| 229 MessagePortMessageFilter* message_port_message_filter() const { | 234 MessagePortMessageFilter* message_port_message_filter() const { |
| 230 return message_port_message_filter_; | 235 return message_port_message_filter_; |
| 231 } | 236 } |
| 232 | 237 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 424 base::TimeTicks survive_for_worker_start_time_; | 429 base::TimeTicks survive_for_worker_start_time_; |
| 425 | 430 |
| 426 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 431 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 427 | 432 |
| 428 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 433 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 429 }; | 434 }; |
| 430 | 435 |
| 431 } // namespace content | 436 } // namespace content |
| 432 | 437 |
| 433 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 438 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |