| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // the specified render widget. | 158 // the specified render widget. |
| 159 virtual void CancelResourceRequests(int render_widget_id) = 0; | 159 virtual void CancelResourceRequests(int render_widget_id) = 0; |
| 160 | 160 |
| 161 // Called on the UI thread to simulate a ClosePage_ACK message to the | 161 // Called on the UI thread to simulate a ClosePage_ACK message to the |
| 162 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 162 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
| 163 // that the original RenderViewHost is not live and thus cannot run an | 163 // that the original RenderViewHost is not live and thus cannot run an |
| 164 // onunload handler. | 164 // onunload handler. |
| 165 virtual void CrossSiteClosePageACK( | 165 virtual void CrossSiteClosePageACK( |
| 166 const ViewMsg_ClosePage_Params& params) = 0; | 166 const ViewMsg_ClosePage_Params& params) = 0; |
| 167 | 167 |
| 168 // Called on the UI thread to wait for the next UpdateRect message for the | 168 // Called on the UI thread to wait for the next PaintRect message for the |
| 169 // specified render widget. Returns true if successful, and the msg out- | 169 // specified render widget. Returns true if successful, and the msg out- |
| 170 // param will contain a copy of the received UpdateRect message. | 170 // param will contain a copy of the received PaintRect message. |
| 171 virtual bool WaitForUpdateMsg(int render_widget_id, | 171 virtual bool WaitForPaintMsg(int render_widget_id, |
| 172 const base::TimeDelta& max_delay, | 172 const base::TimeDelta& max_delay, |
| 173 IPC::Message* msg) = 0; | 173 IPC::Message* msg) = 0; |
| 174 | 174 |
| 175 // Called when a received message cannot be decoded. | 175 // Called when a received message cannot be decoded. |
| 176 virtual void ReceivedBadMessage(uint32 msg_type) = 0; | 176 virtual void ReceivedBadMessage(uint32 msg_type) = 0; |
| 177 | 177 |
| 178 // Track the count of visible widgets. Called by listeners to register and | 178 // Track the count of visible widgets. Called by listeners to register and |
| 179 // unregister visibility. | 179 // unregister visibility. |
| 180 virtual void WidgetRestored() = 0; | 180 virtual void WidgetRestored() = 0; |
| 181 virtual void WidgetHidden() = 0; | 181 virtual void WidgetHidden() = 0; |
| 182 | 182 |
| 183 // Called when RenderView is created by a listener. | 183 // Called when RenderView is created by a listener. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Factory object for RenderProcessHosts. Using this factory allows tests to | 303 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 304 // swap out a different one to use a TestRenderProcessHost. | 304 // swap out a different one to use a TestRenderProcessHost. |
| 305 class RenderProcessHostFactory { | 305 class RenderProcessHostFactory { |
| 306 public: | 306 public: |
| 307 virtual ~RenderProcessHostFactory() {} | 307 virtual ~RenderProcessHostFactory() {} |
| 308 virtual RenderProcessHost* CreateRenderProcessHost( | 308 virtual RenderProcessHost* CreateRenderProcessHost( |
| 309 Profile* profile) const = 0; | 309 Profile* profile) const = 0; |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 312 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |