| 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 // Returns true if HasConnection() is true for any registered hosts. |
| 208 static bool HasAnyConnection(); |
| 209 |
| 207 // Implementation of FilterURL below that can be shared with the mock class. | 210 // Implementation of FilterURL below that can be shared with the mock class. |
| 208 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); | 211 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); |
| 209 | 212 |
| 210 // Returns true if |host| is suitable for launching a new view with |site_url| | 213 // Returns true if |host| is suitable for launching a new view with |site_url| |
| 211 // in the given |browser_context|. | 214 // in the given |browser_context|. |
| 212 static bool IsSuitableHost(RenderProcessHost* host, | 215 static bool IsSuitableHost(RenderProcessHost* host, |
| 213 BrowserContext* browser_context, | 216 BrowserContext* browser_context, |
| 214 const GURL& site_url); | 217 const GURL& site_url); |
| 215 | 218 |
| 216 // Returns an existing RenderProcessHost for |url| in |browser_context|, | 219 // Returns an existing RenderProcessHost for |url| in |browser_context|, |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 518 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 516 | 519 |
| 517 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 520 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 518 | 521 |
| 519 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 522 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 520 }; | 523 }; |
| 521 | 524 |
| 522 } // namespace content | 525 } // namespace content |
| 523 | 526 |
| 524 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 527 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |