| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual base::ProcessHandle GetHandle(); | 62 virtual base::ProcessHandle GetHandle(); |
| 63 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); | 63 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); |
| 64 virtual void SetCompositingSurface( | 64 virtual void SetCompositingSurface( |
| 65 int render_widget_id, | 65 int render_widget_id, |
| 66 gfx::PluginWindowHandle compositing_surface); | 66 gfx::PluginWindowHandle compositing_surface); |
| 67 | 67 |
| 68 // IPC::Channel::Sender via RenderProcessHost. | 68 // IPC::Channel::Sender via RenderProcessHost. |
| 69 virtual bool Send(IPC::Message* msg); | 69 virtual bool Send(IPC::Message* msg); |
| 70 | 70 |
| 71 // IPC::Channel::Listener via RenderProcessHost. | 71 // IPC::Channel::Listener via RenderProcessHost. |
| 72 virtual bool OnMessageReceived(const IPC::Message& msg); | 72 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 73 virtual void OnChannelConnected(int32 peer_pid); | 73 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 74 virtual void OnChannelError(); | 74 virtual void OnChannelError() OVERRIDE; |
| 75 | 75 |
| 76 // ChildProcessLauncher::Client implementation. | 76 // ChildProcessLauncher::Client implementation. |
| 77 virtual void OnProcessLaunched(); | 77 virtual void OnProcessLaunched(); |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 friend class VisitRelayingRenderProcessHost; | 80 friend class VisitRelayingRenderProcessHost; |
| 81 | 81 |
| 82 // Creates and adds the IO thread message filters. | 82 // Creates and adds the IO thread message filters. |
| 83 void CreateMessageFilters(); | 83 void CreateMessageFilters(); |
| 84 | 84 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Messages we queue while waiting for the process handle. We queue them here | 144 // Messages we queue while waiting for the process handle. We queue them here |
| 145 // instead of in the channel so that we ensure they're sent after init related | 145 // instead of in the channel so that we ensure they're sent after init related |
| 146 // messages that are sent once the process handle is available. This is | 146 // messages that are sent once the process handle is available. This is |
| 147 // because the queued messages may have dependencies on the init messages. | 147 // because the queued messages may have dependencies on the init messages. |
| 148 std::queue<IPC::Message*> queued_messages_; | 148 std::queue<IPC::Message*> queued_messages_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 150 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 153 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |