| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // A RenderProcessHost is also associated with one and only one | 54 // A RenderProcessHost is also associated with one and only one |
| 55 // StoragePartition. This allows us to implement strong storage isolation | 55 // StoragePartition. This allows us to implement strong storage isolation |
| 56 // because all the IPCs from the RenderViews (renderer) will only ever be able | 56 // because all the IPCs from the RenderViews (renderer) will only ever be able |
| 57 // to access the partition they are assigned to. | 57 // to access the partition they are assigned to. |
| 58 class CONTENT_EXPORT RenderProcessHostImpl | 58 class CONTENT_EXPORT RenderProcessHostImpl |
| 59 : public RenderProcessHost, | 59 : public RenderProcessHost, |
| 60 public ChildProcessLauncher::Client { | 60 public ChildProcessLauncher::Client { |
| 61 public: | 61 public: |
| 62 RenderProcessHostImpl(BrowserContext* browser_context, | 62 RenderProcessHostImpl(BrowserContext* browser_context, |
| 63 StoragePartitionImpl* storage_partition_impl, | 63 StoragePartitionImpl* storage_partition_impl, |
| 64 bool supports_browser_plugin, |
| 64 bool is_guest); | 65 bool is_guest); |
| 65 virtual ~RenderProcessHostImpl(); | 66 virtual ~RenderProcessHostImpl(); |
| 66 | 67 |
| 67 // RenderProcessHost implementation (public portion). | 68 // RenderProcessHost implementation (public portion). |
| 68 virtual void EnableSendQueue() OVERRIDE; | 69 virtual void EnableSendQueue() OVERRIDE; |
| 69 virtual bool Init() OVERRIDE; | 70 virtual bool Init() OVERRIDE; |
| 70 virtual int GetNextRoutingID() OVERRIDE; | 71 virtual int GetNextRoutingID() OVERRIDE; |
| 71 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) | 72 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) |
| 72 OVERRIDE; | 73 OVERRIDE; |
| 73 virtual bool WaitForBackingStoreMsg(int render_widget_id, | 74 virtual bool WaitForBackingStoreMsg(int render_widget_id, |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 306 |
| 306 #if defined(OS_ANDROID) | 307 #if defined(OS_ANDROID) |
| 307 // Android WebView needs to use a SyncChannel to block the browser process | 308 // Android WebView needs to use a SyncChannel to block the browser process |
| 308 // for synchronous find-in-page API support. In that case the shutdown event | 309 // for synchronous find-in-page API support. In that case the shutdown event |
| 309 // makes no sense as the Android port doesn't shutdown, but gets killed. | 310 // makes no sense as the Android port doesn't shutdown, but gets killed. |
| 310 // SyncChannel still expects a shutdown event, so create a dummy one that | 311 // SyncChannel still expects a shutdown event, so create a dummy one that |
| 311 // will never will be signaled. | 312 // will never will be signaled. |
| 312 base::WaitableEvent dummy_shutdown_event_; | 313 base::WaitableEvent dummy_shutdown_event_; |
| 313 #endif | 314 #endif |
| 314 | 315 |
| 316 // Indicates whether this is a RenderProcessHost that has permission to embed |
| 317 // Browser Plugins. |
| 318 bool supports_browser_plugin_; |
| 319 |
| 315 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest | 320 // Indicates whether this is a RenderProcessHost of a Browser Plugin guest |
| 316 // renderer. | 321 // renderer. |
| 317 bool is_guest_; | 322 bool is_guest_; |
| 318 | 323 |
| 319 // Forwards messages between WebRTCInternals in the browser process | 324 // Forwards messages between WebRTCInternals in the browser process |
| 320 // and PeerConnectionTracker in the renderer process. | 325 // and PeerConnectionTracker in the renderer process. |
| 321 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; | 326 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; |
| 322 | 327 |
| 323 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 328 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 324 }; | 329 }; |
| 325 | 330 |
| 326 } // namespace content | 331 } // namespace content |
| 327 | 332 |
| 328 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 333 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |