| 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 SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0; | 77 virtual void CrossSiteSwapOutACK( |
| 78 const ViewMsg_SwapOut_Params& params) = 0; |
| 78 | 79 |
| 79 // Called to wait for the next UpdateRect message for the specified render | 80 // Called to wait for the next UpdateRect message for the specified render |
| 80 // widget. Returns true if successful, and the msg out-param will contain a | 81 // widget. Returns true if successful, and the msg out-param will contain a |
| 81 // copy of the received UpdateRect message. | 82 // copy of the received UpdateRect message. |
| 82 virtual bool WaitForBackingStoreMsg(int render_widget_id, | 83 virtual bool WaitForBackingStoreMsg(int render_widget_id, |
| 83 const base::TimeDelta& max_delay, | 84 const base::TimeDelta& max_delay, |
| 84 IPC::Message* msg) = 0; | 85 IPC::Message* msg) = 0; |
| 85 | 86 |
| 86 // Called when a received message cannot be decoded. | 87 // Called when a received message cannot be decoded. |
| 87 virtual void ReceivedBadMessage() = 0; | 88 virtual void ReceivedBadMessage() = 0; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 static void SetMaxRendererProcessCount(size_t count); | 235 static void SetMaxRendererProcessCount(size_t count); |
| 235 | 236 |
| 236 // Returns the current max number of renderer processes used by the content | 237 // Returns the current max number of renderer processes used by the content |
| 237 // module. | 238 // module. |
| 238 static size_t GetMaxRendererProcessCount(); | 239 static size_t GetMaxRendererProcessCount(); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace content. | 242 } // namespace content. |
| 242 | 243 |
| 243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |