Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: content/browser/renderer_host/render_process_host.h

Issue 7211029: Fix a regression where extension APIs would sometimes not be available on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // only if |count| matches the number of render widgets that this process 155 // only if |count| matches the number of render widgets that this process
156 // controls. 156 // controls.
157 bool FastShutdownForPageCount(size_t count); 157 bool FastShutdownForPageCount(size_t count);
158 158
159 bool fast_shutdown_started() { 159 bool fast_shutdown_started() {
160 return fast_shutdown_started_; 160 return fast_shutdown_started_;
161 } 161 }
162 162
163 // Virtual interface --------------------------------------------------------- 163 // Virtual interface ---------------------------------------------------------
164 164
165 // Call this allow queueing of IPC messages that are sent before the process
Charlie Reis 2011/06/22 22:20:48 Nit: Call this to allow
166 // is launched.
167 virtual void EnableSendQueue() = 0;
168
165 // Initialize the new renderer process, returning true on success. This must 169 // Initialize the new renderer process, returning true on success. This must
166 // be called once before the object can be used, but can be called after 170 // be called once before the object can be used, but can be called after
167 // that with no effect. Therefore, if the caller isn't sure about whether 171 // that with no effect. Therefore, if the caller isn't sure about whether
168 // the process has been created, it should just call Init(). 172 // the process has been created, it should just call Init().
169 virtual bool Init(bool is_accessibility_enabled) = 0; 173 virtual bool Init(bool is_accessibility_enabled) = 0;
170 174
171 // Gets the next available routing id. 175 // Gets the next available routing id.
172 virtual int GetNextRoutingID() = 0; 176 virtual int GetNextRoutingID() = 0;
173 177
174 // 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
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Factory object for RenderProcessHosts. Using this factory allows tests to 325 // Factory object for RenderProcessHosts. Using this factory allows tests to
322 // swap out a different one to use a TestRenderProcessHost. 326 // swap out a different one to use a TestRenderProcessHost.
323 class RenderProcessHostFactory { 327 class RenderProcessHostFactory {
324 public: 328 public:
325 virtual ~RenderProcessHostFactory() {} 329 virtual ~RenderProcessHostFactory() {}
326 virtual RenderProcessHost* CreateRenderProcessHost( 330 virtual RenderProcessHost* CreateRenderProcessHost(
327 Profile* profile) const = 0; 331 Profile* profile) const = 0;
328 }; 332 };
329 333
330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 334 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/mock_render_process_host.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698