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_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 // Initialize the new renderer process, returning true on success. This must | 166 // Initialize the new renderer process, returning true on success. This must |
167 // be called once before the object can be used, but can be called after | 167 // be called once before the object can be used, but can be called after |
168 // that with no effect. Therefore, if the caller isn't sure about whether | 168 // that with no effect. Therefore, if the caller isn't sure about whether |
169 // the process has been created, it should just call Init(). | 169 // the process has been created, it should just call Init(). |
170 virtual bool Init(bool is_accessibility_enabled) = 0; | 170 virtual bool Init(bool is_accessibility_enabled) = 0; |
171 | 171 |
172 // Gets the next available routing id. | 172 // Gets the next available routing id. |
173 virtual int GetNextRoutingID() = 0; | 173 virtual int GetNextRoutingID() = 0; |
174 | 174 |
| 175 // Update the max page ID and send the update to the renderer process as well. |
| 176 virtual void UpdateAndSendMaxPageID(int32 page_id) = 0; |
| 177 |
175 // Called on the UI thread to cancel any outstanding resource requests for | 178 // Called on the UI thread to cancel any outstanding resource requests for |
176 // the specified render widget. | 179 // the specified render widget. |
177 virtual void CancelResourceRequests(int render_widget_id) = 0; | 180 virtual void CancelResourceRequests(int render_widget_id) = 0; |
178 | 181 |
179 // Called on the UI thread to simulate a SwapOut_ACK message to the | 182 // Called on the UI thread to simulate a SwapOut_ACK message to the |
180 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 183 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
181 // that the original RenderViewHost is not live and thus cannot run an | 184 // that the original RenderViewHost is not live and thus cannot run an |
182 // unload handler. | 185 // unload handler. |
183 virtual void CrossSiteSwapOutACK( | 186 virtual void CrossSiteSwapOutACK( |
184 const ViewMsg_SwapOut_Params& params) = 0; | 187 const ViewMsg_SwapOut_Params& params) = 0; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // Factory object for RenderProcessHosts. Using this factory allows tests to | 334 // Factory object for RenderProcessHosts. Using this factory allows tests to |
332 // swap out a different one to use a TestRenderProcessHost. | 335 // swap out a different one to use a TestRenderProcessHost. |
333 class RenderProcessHostFactory { | 336 class RenderProcessHostFactory { |
334 public: | 337 public: |
335 virtual ~RenderProcessHostFactory() {} | 338 virtual ~RenderProcessHostFactory() {} |
336 virtual RenderProcessHost* CreateRenderProcessHost( | 339 virtual RenderProcessHost* CreateRenderProcessHost( |
337 content::BrowserContext* browser_context) const = 0; | 340 content::BrowserContext* browser_context) const = 0; |
338 }; | 341 }; |
339 | 342 |
340 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
OLD | NEW |