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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 private: | 283 private: |
284 friend class VisitRelayingRenderProcessHost; | 284 friend class VisitRelayingRenderProcessHost; |
285 | 285 |
286 bool ShouldUseMojoChannel() const; | 286 bool ShouldUseMojoChannel() const; |
287 scoped_ptr<IPC::ChannelProxy> CreateChannelProxy( | 287 scoped_ptr<IPC::ChannelProxy> CreateChannelProxy( |
288 const std::string& channel_id); | 288 const std::string& channel_id); |
289 | 289 |
290 // Creates and adds the IO thread message filters. | 290 // Creates and adds the IO thread message filters. |
291 void CreateMessageFilters(); | 291 void CreateMessageFilters(); |
292 | 292 |
| 293 // Registers Mojo services to be exposed to the renderer. |
| 294 void RegisterMojoServices(); |
| 295 |
293 // Control message handlers. | 296 // Control message handlers. |
294 void OnShutdownRequest(); | 297 void OnShutdownRequest(); |
295 void OnDumpHandlesDone(); | 298 void OnDumpHandlesDone(); |
296 void SuddenTerminationChanged(bool enabled); | 299 void SuddenTerminationChanged(bool enabled); |
297 void OnUserMetricsRecordAction(const std::string& action); | 300 void OnUserMetricsRecordAction(const std::string& action); |
298 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 301 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
299 void OnCloseACK(int old_route_id); | 302 void OnCloseACK(int old_route_id); |
300 | 303 |
301 // Generates a command line to be used to spawn a renderer and appends the | 304 // Generates a command line to be used to spawn a renderer and appends the |
302 // results to |*command_line|. | 305 // results to |*command_line|. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 base::TimeTicks survive_for_worker_start_time_; | 458 base::TimeTicks survive_for_worker_start_time_; |
456 | 459 |
457 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 460 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
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 |