| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 static void ReleaseOnCloseACK( | 197 static void ReleaseOnCloseACK( |
| 198 RenderProcessHost* host, | 198 RenderProcessHost* host, |
| 199 const SessionStorageNamespaceMap& sessions, | 199 const SessionStorageNamespaceMap& sessions, |
| 200 int view_route_id); | 200 int view_route_id); |
| 201 | 201 |
| 202 // Register/unregister the host identified by the host id in the global host | 202 // Register/unregister the host identified by the host id in the global host |
| 203 // list. | 203 // list. |
| 204 static void RegisterHost(int host_id, RenderProcessHost* host); | 204 static void RegisterHost(int host_id, RenderProcessHost* host); |
| 205 static void UnregisterHost(int host_id); | 205 static void UnregisterHost(int host_id); |
| 206 | 206 |
| 207 // CHECKs that all hosts have terminated. | |
| 208 // Added temporarily to diagnose crbug.com/608049. | |
| 209 static void CheckAllTerminated(); | |
| 210 | |
| 211 // Implementation of FilterURL below that can be shared with the mock class. | 207 // Implementation of FilterURL below that can be shared with the mock class. |
| 212 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); | 208 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); |
| 213 | 209 |
| 214 // Returns true if |host| is suitable for launching a new view with |site_url| | 210 // Returns true if |host| is suitable for launching a new view with |site_url| |
| 215 // in the given |browser_context|. | 211 // in the given |browser_context|. |
| 216 static bool IsSuitableHost(RenderProcessHost* host, | 212 static bool IsSuitableHost(RenderProcessHost* host, |
| 217 BrowserContext* browser_context, | 213 BrowserContext* browser_context, |
| 218 const GURL& site_url); | 214 const GURL& site_url); |
| 219 | 215 |
| 220 // Returns an existing RenderProcessHost for |url| in |browser_context|, | 216 // Returns an existing RenderProcessHost for |url| in |browser_context|, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 511 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 516 | 512 |
| 517 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 513 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 518 | 514 |
| 519 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 515 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 520 }; | 516 }; |
| 521 | 517 |
| 522 } // namespace content | 518 } // namespace content |
| 523 | 519 |
| 524 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 520 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |