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

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

Issue 15682009: Eliminate SwapOut message parameters, keeping state in RVHM instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to get Android build fix Created 7 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Initialize the new renderer process, returning true on success. This must 58 // Initialize the new renderer process, returning true on success. This must
59 // be called once before the object can be used, but can be called after 59 // be called once before the object can be used, but can be called after
60 // that with no effect. Therefore, if the caller isn't sure about whether 60 // that with no effect. Therefore, if the caller isn't sure about whether
61 // the process has been created, it should just call Init(). 61 // the process has been created, it should just call Init().
62 virtual bool Init() = 0; 62 virtual bool Init() = 0;
63 63
64 // Gets the next available routing id. 64 // Gets the next available routing id.
65 virtual int GetNextRoutingID() = 0; 65 virtual int GetNextRoutingID() = 0;
66 66
67 // Called on the UI thread to simulate a SwapOut_ACK message to the
68 // ResourceDispatcherHost. Necessary for a cross-site request, in the case
69 // that the original RenderViewHost is not live and thus cannot run an
70 // unload handler.
71 virtual void SimulateSwapOutACK(const ViewMsg_SwapOut_Params& params) = 0;
72
73 // Called to wait for the next UpdateRect message for the specified render 67 // Called to wait for the next UpdateRect message for the specified render
74 // widget. Returns true if successful, and the msg out-param will contain a 68 // widget. Returns true if successful, and the msg out-param will contain a
75 // copy of the received UpdateRect message. 69 // copy of the received UpdateRect message.
76 virtual bool WaitForBackingStoreMsg(int render_widget_id, 70 virtual bool WaitForBackingStoreMsg(int render_widget_id,
77 const base::TimeDelta& max_delay, 71 const base::TimeDelta& max_delay,
78 IPC::Message* msg) = 0; 72 IPC::Message* msg) = 0;
79 73
80 // Called when a received message cannot be decoded. 74 // Called when a received message cannot be decoded.
81 virtual void ReceivedBadMessage() = 0; 75 virtual void ReceivedBadMessage() = 0;
82 76
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 static void SetMaxRendererProcessCount(size_t count); 248 static void SetMaxRendererProcessCount(size_t count);
255 249
256 // Returns the current max number of renderer processes used by the content 250 // Returns the current max number of renderer processes used by the content
257 // module. 251 // module.
258 static size_t GetMaxRendererProcessCount(); 252 static size_t GetMaxRendererProcessCount();
259 }; 253 };
260 254
261 } // namespace content. 255 } // namespace content.
262 256
263 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 257 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698