| 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 <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool Init() override; | 105 bool Init() override; |
| 106 int GetNextRoutingID() override; | 106 int GetNextRoutingID() override; |
| 107 void AddRoute(int32 routing_id, IPC::Listener* listener) override; | 107 void AddRoute(int32 routing_id, IPC::Listener* listener) override; |
| 108 void RemoveRoute(int32 routing_id) override; | 108 void RemoveRoute(int32 routing_id) override; |
| 109 void AddObserver(RenderProcessHostObserver* observer) override; | 109 void AddObserver(RenderProcessHostObserver* observer) override; |
| 110 void RemoveObserver(RenderProcessHostObserver* observer) override; | 110 void RemoveObserver(RenderProcessHostObserver* observer) override; |
| 111 void ShutdownForBadMessage() override; | 111 void ShutdownForBadMessage() override; |
| 112 void WidgetRestored() override; | 112 void WidgetRestored() override; |
| 113 void WidgetHidden() override; | 113 void WidgetHidden() override; |
| 114 int VisibleWidgetCount() const override; | 114 int VisibleWidgetCount() const override; |
| 115 void AudioStopped() override; |
| 116 void AudioStarted() override; |
| 115 bool IsForGuestsOnly() const override; | 117 bool IsForGuestsOnly() const override; |
| 116 StoragePartition* GetStoragePartition() const override; | 118 StoragePartition* GetStoragePartition() const override; |
| 117 bool Shutdown(int exit_code, bool wait) override; | 119 bool Shutdown(int exit_code, bool wait) override; |
| 118 bool FastShutdownIfPossible() override; | 120 bool FastShutdownIfPossible() override; |
| 119 base::ProcessHandle GetHandle() const override; | 121 base::ProcessHandle GetHandle() const override; |
| 120 BrowserContext* GetBrowserContext() const override; | 122 BrowserContext* GetBrowserContext() const override; |
| 121 bool InSameStoragePartition(StoragePartition* partition) const override; | 123 bool InSameStoragePartition(StoragePartition* partition) const override; |
| 122 int GetID() const override; | 124 int GetID() const override; |
| 123 bool HasConnection() const override; | 125 bool HasConnection() const override; |
| 124 void SetIgnoreInputEvents(bool ignore_input_events) override; | 126 void SetIgnoreInputEvents(bool ignore_input_events) override; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 void AppendRendererCommandLine(base::CommandLine* command_line) const; | 325 void AppendRendererCommandLine(base::CommandLine* command_line) const; |
| 324 | 326 |
| 325 // Copies applicable command line switches from the given |browser_cmd| line | 327 // Copies applicable command line switches from the given |browser_cmd| line |
| 326 // flags to the output |renderer_cmd| line flags. Not all switches will be | 328 // flags to the output |renderer_cmd| line flags. Not all switches will be |
| 327 // copied over. | 329 // copied over. |
| 328 void PropagateBrowserCommandLineToRenderer( | 330 void PropagateBrowserCommandLineToRenderer( |
| 329 const base::CommandLine& browser_cmd, | 331 const base::CommandLine& browser_cmd, |
| 330 base::CommandLine* renderer_cmd) const; | 332 base::CommandLine* renderer_cmd) const; |
| 331 | 333 |
| 332 // Callers can reduce the RenderProcess' priority. | 334 // Callers can reduce the RenderProcess' priority. |
| 335 // Must be called from the IO thread. |
| 333 void SetBackgrounded(bool backgrounded); | 336 void SetBackgrounded(bool backgrounded); |
| 334 | 337 |
| 335 // Handle termination of our process. | 338 // Handle termination of our process. |
| 336 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); | 339 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); |
| 337 | 340 |
| 338 // GpuSwitchingObserver implementation. | 341 // GpuSwitchingObserver implementation. |
| 339 void OnGpuSwitched() override; | 342 void OnGpuSwitched() override; |
| 340 | 343 |
| 341 #if defined(ENABLE_WEBRTC) | 344 #if defined(ENABLE_WEBRTC) |
| 342 void OnRegisterAecDumpConsumer(int id); | 345 void OnRegisterAecDumpConsumer(int id); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 #endif | 511 #endif |
| 509 | 512 |
| 510 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 513 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 511 | 514 |
| 512 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 515 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 513 }; | 516 }; |
| 514 | 517 |
| 515 } // namespace content | 518 } // namespace content |
| 516 | 519 |
| 517 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 520 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |