| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 |
| 11 #include "app/surface/transport_dib.h" | 11 #include "app/surface/transport_dib.h" |
| 12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
| 13 #include "base/process.h" | 13 #include "base/process.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "chrome/common/visitedlink_common.h" | 17 #include "chrome/common/visitedlink_common.h" |
| 18 #include "ipc/ipc_sync_channel.h" | 18 #include "ipc/ipc_sync_channel.h" |
| 19 | 19 |
| 20 class Extension; |
| 20 class Profile; | 21 class Profile; |
| 21 class URLRequestContextGetter; | 22 class URLRequestContextGetter; |
| 22 struct ViewMsg_ClosePage_Params; | 23 struct ViewMsg_ClosePage_Params; |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class SharedMemory; | 26 class SharedMemory; |
| 26 } | 27 } |
| 27 | 28 |
| 28 // Virtual interface that represents the browser side of the browser <-> | 29 // Virtual interface that represents the browser side of the browser <-> |
| 29 // renderer communication channel. There will generally be one | 30 // renderer communication channel. There will generally be one |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return fast_shutdown_started_; | 148 return fast_shutdown_started_; |
| 148 } | 149 } |
| 149 | 150 |
| 150 // Virtual interface --------------------------------------------------------- | 151 // Virtual interface --------------------------------------------------------- |
| 151 | 152 |
| 152 // Initialize the new renderer process, returning true on success. This must | 153 // Initialize the new renderer process, returning true on success. This must |
| 153 // be called once before the object can be used, but can be called after | 154 // be called once before the object can be used, but can be called after |
| 154 // that with no effect. Therefore, if the caller isn't sure about whether | 155 // that with no effect. Therefore, if the caller isn't sure about whether |
| 155 // the process has been created, it should just call Init(). | 156 // the process has been created, it should just call Init(). |
| 156 virtual bool Init( | 157 virtual bool Init( |
| 157 bool is_accessibility_enabled, bool is_extensions_process) = 0; | 158 bool is_accessibility_enabled, bool is_extensions_process, |
| 159 const Extension* installed_app) = 0; |
| 158 | 160 |
| 159 // Gets the next available routing id. | 161 // Gets the next available routing id. |
| 160 virtual int GetNextRoutingID() = 0; | 162 virtual int GetNextRoutingID() = 0; |
| 161 | 163 |
| 162 // Called on the UI thread to cancel any outstanding resource requests for | 164 // Called on the UI thread to cancel any outstanding resource requests for |
| 163 // the specified render widget. | 165 // the specified render widget. |
| 164 virtual void CancelResourceRequests(int render_widget_id) = 0; | 166 virtual void CancelResourceRequests(int render_widget_id) = 0; |
| 165 | 167 |
| 166 // Called on the UI thread to simulate a ClosePage_ACK message to the | 168 // Called on the UI thread to simulate a ClosePage_ACK message to the |
| 167 // ResourceDispatcherHost. Necessary for a cross-site request, in the case | 169 // ResourceDispatcherHost. Necessary for a cross-site request, in the case |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // Factory object for RenderProcessHosts. Using this factory allows tests to | 320 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 319 // swap out a different one to use a TestRenderProcessHost. | 321 // swap out a different one to use a TestRenderProcessHost. |
| 320 class RenderProcessHostFactory { | 322 class RenderProcessHostFactory { |
| 321 public: | 323 public: |
| 322 virtual ~RenderProcessHostFactory() {} | 324 virtual ~RenderProcessHostFactory() {} |
| 323 virtual RenderProcessHost* CreateRenderProcessHost( | 325 virtual RenderProcessHost* CreateRenderProcessHost( |
| 324 Profile* profile) const = 0; | 326 Profile* profile) const = 0; |
| 325 }; | 327 }; |
| 326 | 328 |
| 327 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 329 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |