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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Initialize the new renderer process, returning true on success. This must | 58 // Initialize the new renderer process, returning true on success. This must |
59 // be called once before the object can be used, but can be called after | 59 // be called once before the object can be used, but can be called after |
60 // that with no effect. Therefore, if the caller isn't sure about whether | 60 // that with no effect. Therefore, if the caller isn't sure about whether |
61 // the process has been created, it should just call Init(). | 61 // the process has been created, it should just call Init(). |
62 virtual bool Init() = 0; | 62 virtual bool Init() = 0; |
63 | 63 |
64 // Gets the next available routing id. | 64 // Gets the next available routing id. |
65 virtual int GetNextRoutingID() = 0; | 65 virtual int GetNextRoutingID() = 0; |
66 | 66 |
67 // Called on the UI thread to cancel any outstanding resource requests for | |
68 // the specified render widget. | |
69 virtual void CancelResourceRequests(int render_widget_id) = 0; | |
70 | |
71 // Called on the UI thread to simulate a SwapOut_ACK message to the | 67 // Called on the UI thread to simulate a SwapOut_ACK message to the |
72 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 68 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
73 // that the original RenderViewHost is not live and thus cannot run an | 69 // that the original RenderViewHost is not live and thus cannot run an |
74 // unload handler. | 70 // unload handler. |
75 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0; | 71 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0; |
76 | 72 |
77 // Called to wait for the next UpdateRect message for the specified render | 73 // Called to wait for the next UpdateRect message for the specified render |
78 // widget. Returns true if successful, and the msg out-param will contain a | 74 // widget. Returns true if successful, and the msg out-param will contain a |
79 // copy of the received UpdateRect message. | 75 // copy of the received UpdateRect message. |
80 virtual bool WaitForBackingStoreMsg(int render_widget_id, | 76 virtual bool WaitForBackingStoreMsg(int render_widget_id, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 static void SetMaxRendererProcessCount(size_t count); | 250 static void SetMaxRendererProcessCount(size_t count); |
255 | 251 |
256 // Returns the current max number of renderer processes used by the content | 252 // Returns the current max number of renderer processes used by the content |
257 // module. | 253 // module. |
258 static size_t GetMaxRendererProcessCount(); | 254 static size_t GetMaxRendererProcessCount(); |
259 }; | 255 }; |
260 | 256 |
261 } // namespace content. | 257 } // namespace content. |
262 | 258 |
263 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 259 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |