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