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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 base::CommandLine* renderer_cmd) const; | 315 base::CommandLine* renderer_cmd) const; |
316 | 316 |
317 // Callers can reduce the RenderProcess' priority. | 317 // Callers can reduce the RenderProcess' priority. |
318 void SetBackgrounded(bool backgrounded); | 318 void SetBackgrounded(bool backgrounded); |
319 | 319 |
320 // Handle termination of our process. | 320 // Handle termination of our process. |
321 void ProcessDied(bool already_dead); | 321 void ProcessDied(bool already_dead); |
322 | 322 |
323 virtual void OnGpuSwitching() OVERRIDE; | 323 virtual void OnGpuSwitching() OVERRIDE; |
324 | 324 |
| 325 // Registers Mojo services to be exposed to the renderer. |
| 326 void RegisterMojoServices(); |
| 327 |
325 #if defined(ENABLE_WEBRTC) | 328 #if defined(ENABLE_WEBRTC) |
326 void OnRegisterAecDumpConsumer(int id); | 329 void OnRegisterAecDumpConsumer(int id); |
327 void OnUnregisterAecDumpConsumer(int id); | 330 void OnUnregisterAecDumpConsumer(int id); |
328 void RegisterAecDumpConsumerOnUIThread(int id); | 331 void RegisterAecDumpConsumerOnUIThread(int id); |
329 void UnregisterAecDumpConsumerOnUIThread(int id); | 332 void UnregisterAecDumpConsumerOnUIThread(int id); |
330 void EnableAecDumpForId(const base::FilePath& file, int id); | 333 void EnableAecDumpForId(const base::FilePath& file, int id); |
331 // Sends |file_for_transit| to the render process. | 334 // Sends |file_for_transit| to the render process. |
332 void SendAecDumpFileToRenderer(int id, | 335 void SendAecDumpFileToRenderer(int id, |
333 IPC::PlatformFileForTransit file_for_transit); | 336 IPC::PlatformFileForTransit file_for_transit); |
334 void SendDisableAecDumpToRenderer(); | 337 void SendDisableAecDumpToRenderer(); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 base::TimeTicks survive_for_worker_start_time_; | 459 base::TimeTicks survive_for_worker_start_time_; |
457 | 460 |
458 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 461 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
459 | 462 |
460 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 463 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
461 }; | 464 }; |
462 | 465 |
463 } // namespace content | 466 } // namespace content |
464 | 467 |
465 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 468 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |