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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool fast_shutdown_started() { | 141 bool fast_shutdown_started() { |
142 return fast_shutdown_started_; | 142 return fast_shutdown_started_; |
143 } | 143 } |
144 | 144 |
145 // Virtual interface --------------------------------------------------------- | 145 // Virtual interface --------------------------------------------------------- |
146 | 146 |
147 // Initialize the new renderer process, returning true on success. This must | 147 // Initialize the new renderer process, returning true on success. This must |
148 // be called once before the object can be used, but can be called after | 148 // be called once before the object can be used, but can be called after |
149 // that with no effect. Therefore, if the caller isn't sure about whether | 149 // that with no effect. Therefore, if the caller isn't sure about whether |
150 // the process has been created, it should just call Init(). | 150 // the process has been created, it should just call Init(). |
151 virtual bool Init(bool is_extensions_process, | 151 virtual bool Init(bool is_extensions_process) = 0; |
152 URLRequestContextGetter* request_context) = 0; | |
153 | 152 |
154 // Gets the next available routing id. | 153 // Gets the next available routing id. |
155 virtual int GetNextRoutingID() = 0; | 154 virtual int GetNextRoutingID() = 0; |
156 | 155 |
157 // Called on the UI thread to cancel any outstanding resource requests for | 156 // Called on the UI thread to cancel any outstanding resource requests for |
158 // the specified render widget. | 157 // the specified render widget. |
159 virtual void CancelResourceRequests(int render_widget_id) = 0; | 158 virtual void CancelResourceRequests(int render_widget_id) = 0; |
160 | 159 |
161 // Called on the UI thread to simulate a ClosePage_ACK message to the | 160 // Called on the UI thread to simulate a ClosePage_ACK message to the |
162 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 161 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // Factory object for RenderProcessHosts. Using this factory allows tests to | 309 // Factory object for RenderProcessHosts. Using this factory allows tests to |
311 // swap out a different one to use a TestRenderProcessHost. | 310 // swap out a different one to use a TestRenderProcessHost. |
312 class RenderProcessHostFactory { | 311 class RenderProcessHostFactory { |
313 public: | 312 public: |
314 virtual ~RenderProcessHostFactory() {} | 313 virtual ~RenderProcessHostFactory() {} |
315 virtual RenderProcessHost* CreateRenderProcessHost( | 314 virtual RenderProcessHost* CreateRenderProcessHost( |
316 Profile* profile) const = 0; | 315 Profile* profile) const = 0; |
317 }; | 316 }; |
318 | 317 |
319 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
OLD | NEW |