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

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

Issue 2411093002: Always keep a ChannelProxy alive in RenderProcessHostImpl (Closed)
Patch Set: rebase Created 4 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // This ID will be unique across all child process hosts, including workers, 174 // This ID will be unique across all child process hosts, including workers,
175 // plugins, etc. 175 // plugins, etc.
176 // 176 //
177 // This will never return ChildProcessHost::kInvalidUniqueID. 177 // This will never return ChildProcessHost::kInvalidUniqueID.
178 virtual int GetID() const = 0; 178 virtual int GetID() const = 0;
179 179
180 // Returns true iff channel_ has been set to non-nullptr. Use this for 180 // Returns true iff channel_ has been set to non-nullptr. Use this for
181 // checking if there is connection or not. Virtual for mocking out for tests. 181 // checking if there is connection or not. Virtual for mocking out for tests.
182 virtual bool HasConnection() const = 0; 182 virtual bool HasConnection() const = 0;
183 183
184 // Call this to allow queueing of IPC messages that are sent before the
185 // process is launched.
186 virtual void EnableSendQueue() = 0;
187
188 // Returns the renderer channel. 184 // Returns the renderer channel.
189 virtual IPC::ChannelProxy* GetChannel() = 0; 185 virtual IPC::ChannelProxy* GetChannel() = 0;
190 186
191 // Adds a message filter to the IPC channel. 187 // Adds a message filter to the IPC channel.
192 virtual void AddFilter(BrowserMessageFilter* filter) = 0; 188 virtual void AddFilter(BrowserMessageFilter* filter) = 0;
193 189
194 // Try to shutdown the associated render process as fast as possible 190 // Try to shutdown the associated render process as fast as possible
195 virtual bool FastShutdownForPageCount(size_t count) = 0; 191 virtual bool FastShutdownForPageCount(size_t count) = 0;
196 192
197 // TODO(ananta) 193 // TODO(ananta)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 static void SetMaxRendererProcessCount(size_t count); 370 static void SetMaxRendererProcessCount(size_t count);
375 371
376 // Returns the current maximum number of renderer process hosts kept by the 372 // Returns the current maximum number of renderer process hosts kept by the
377 // content module. 373 // content module.
378 static size_t GetMaxRendererProcessCount(); 374 static size_t GetMaxRendererProcessCount();
379 }; 375 };
380 376
381 } // namespace content. 377 } // namespace content.
382 378
383 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 379 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698