| 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 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 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public IPC::Channel::Listener { | 36 public IPC::Channel::Listener { |
| 37 public: | 37 public: |
| 38 typedef IDMap<RenderProcessHost>::iterator iterator; | 38 typedef IDMap<RenderProcessHost>::iterator iterator; |
| 39 | 39 |
| 40 // We classify renderers according to their highest privilege, and try | 40 // We classify renderers according to their highest privilege, and try |
| 41 // to group pages into renderers with similar privileges. | 41 // to group pages into renderers with similar privileges. |
| 42 // Note: it may be possible for a renderer to have multiple privileges, | 42 // Note: it may be possible for a renderer to have multiple privileges, |
| 43 // in which case we call it an "extension" renderer. | 43 // in which case we call it an "extension" renderer. |
| 44 enum Type { | 44 enum Type { |
| 45 TYPE_NORMAL, // Normal renderer, no extra privileges. | 45 TYPE_NORMAL, // Normal renderer, no extra privileges. |
| 46 TYPE_DOMUI, // Renderer with WebUI privileges, like New Tab. | 46 TYPE_WEBUI, // Renderer with WebUI privileges, like New Tab. |
| 47 TYPE_EXTENSION, // Renderer with extension privileges. | 47 TYPE_EXTENSION, // Renderer with extension privileges. |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Details for RENDERER_PROCESS_CLOSED notifications. | 50 // Details for RENDERER_PROCESS_CLOSED notifications. |
| 51 struct RendererClosedDetails { | 51 struct RendererClosedDetails { |
| 52 RendererClosedDetails(base::TerminationStatus status, | 52 RendererClosedDetails(base::TerminationStatus status, |
| 53 int exit_code, | 53 int exit_code, |
| 54 bool was_extension_renderer) { | 54 bool was_extension_renderer) { |
| 55 this->status = status; | 55 this->status = status; |
| 56 this->exit_code = exit_code; | 56 this->exit_code = exit_code; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 // Factory object for RenderProcessHosts. Using this factory allows tests to | 318 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 319 // swap out a different one to use a TestRenderProcessHost. | 319 // swap out a different one to use a TestRenderProcessHost. |
| 320 class RenderProcessHostFactory { | 320 class RenderProcessHostFactory { |
| 321 public: | 321 public: |
| 322 virtual ~RenderProcessHostFactory() {} | 322 virtual ~RenderProcessHostFactory() {} |
| 323 virtual RenderProcessHost* CreateRenderProcessHost( | 323 virtual RenderProcessHost* CreateRenderProcessHost( |
| 324 Profile* profile) const = 0; | 324 Profile* profile) const = 0; |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 327 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |