| 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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 virtual int GetNextRoutingID() = 0; | 67 virtual int GetNextRoutingID() = 0; |
| 68 | 68 |
| 69 // Called on the UI thread to cancel any outstanding resource requests for | 69 // Called on the UI thread to cancel any outstanding resource requests for |
| 70 // the specified render widget. | 70 // the specified render widget. |
| 71 virtual void CancelResourceRequests(int render_widget_id) = 0; | 71 virtual void CancelResourceRequests(int render_widget_id) = 0; |
| 72 | 72 |
| 73 // Called on the UI thread to simulate a SwapOut_ACK message to the | 73 // Called on the UI thread to simulate a SwapOut_ACK message to the |
| 74 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 74 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
| 75 // that the original RenderViewHost is not live and thus cannot run an | 75 // that the original RenderViewHost is not live and thus cannot run an |
| 76 // unload handler. | 76 // unload handler. |
| 77 virtual void CrossSiteSwapOutACK( | 77 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0; |
| 78 const ViewMsg_SwapOut_Params& params) = 0; | |
| 79 | 78 |
| 80 // Called to wait for the next UpdateRect message for the specified render | 79 // Called to wait for the next UpdateRect message for the specified render |
| 81 // widget. Returns true if successful, and the msg out-param will contain a | 80 // widget. Returns true if successful, and the msg out-param will contain a |
| 82 // copy of the received UpdateRect message. | 81 // copy of the received UpdateRect message. |
| 83 virtual bool WaitForUpdateMsg(int render_widget_id, | 82 virtual bool WaitForUpdateMsg(int render_widget_id, |
| 84 const base::TimeDelta& max_delay, | 83 const base::TimeDelta& max_delay, |
| 85 IPC::Message* msg) = 0; | 84 IPC::Message* msg) = 0; |
| 86 | 85 |
| 87 // Called when a received message cannot be decoded. | 86 // Called when a received message cannot be decoded. |
| 88 virtual void ReceivedBadMessage() = 0; | 87 virtual void ReceivedBadMessage() = 0; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 235 |
| 237 // Returns the current max number of renderer processes used by the content | 236 // Returns the current max number of renderer processes used by the content |
| 238 // module. | 237 // module. |
| 239 static size_t GetMaxRendererProcessCount(); | 238 static size_t GetMaxRendererProcessCount(); |
| 240 }; | 239 }; |
| 241 | 240 |
| 242 } // namespace content. | 241 } // namespace content. |
| 243 | 242 |
| 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 245 | 244 |
| OLD | NEW |