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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 // The count of currently swapped out but pending RenderViews. We have | 273 // The count of currently swapped out but pending RenderViews. We have |
274 // started to swap these in, so the renderer process should not exit if | 274 // started to swap these in, so the renderer process should not exit if |
275 // this count is non-zero. | 275 // this count is non-zero. |
276 int32 pending_views_; | 276 int32 pending_views_; |
277 | 277 |
278 private: | 278 private: |
279 friend class VisitRelayingRenderProcessHost; | 279 friend class VisitRelayingRenderProcessHost; |
280 | 280 |
281 void MaybeActivateMojo(); | 281 void MaybeActivateMojo(); |
| 282 bool ShouldUseMojoChannel() const; |
| 283 scoped_ptr<IPC::ChannelProxy> CreateChannelProxy( |
| 284 const std::string& channel_id); |
282 | 285 |
283 // Creates and adds the IO thread message filters. | 286 // Creates and adds the IO thread message filters. |
284 void CreateMessageFilters(); | 287 void CreateMessageFilters(); |
285 | 288 |
286 // Control message handlers. | 289 // Control message handlers. |
287 void OnShutdownRequest(); | 290 void OnShutdownRequest(); |
288 void OnDumpHandlesDone(); | 291 void OnDumpHandlesDone(); |
289 void SuddenTerminationChanged(bool enabled); | 292 void SuddenTerminationChanged(bool enabled); |
290 void OnUserMetricsRecordAction(const std::string& action); | 293 void OnUserMetricsRecordAction(const std::string& action); |
291 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 294 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 #if defined(OS_MACOSX) | 458 #if defined(OS_MACOSX) |
456 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; | 459 base::ScopedCFTypeRef<IOSurfaceRef> last_io_surface_; |
457 #endif | 460 #endif |
458 | 461 |
459 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 462 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
460 }; | 463 }; |
461 | 464 |
462 } // namespace content | 465 } // namespace content |
463 | 466 |
464 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 467 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |