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

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

Issue 665923002: Moves RenderProcessHostImpl::init_time() to RenderProcessHost to fix broken test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // transferring it to a new renderer process. 222 // transferring it to a new renderer process.
223 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 223 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
224 224
225 // Notifies the renderer that the timezone configuration of the system might 225 // Notifies the renderer that the timezone configuration of the system might
226 // have changed. 226 // have changed.
227 virtual void NotifyTimezoneChange() = 0; 227 virtual void NotifyTimezoneChange() = 0;
228 228
229 // Returns the ServiceRegistry for this process. 229 // Returns the ServiceRegistry for this process.
230 virtual ServiceRegistry* GetServiceRegistry() = 0; 230 virtual ServiceRegistry* GetServiceRegistry() = 0;
231 231
232 // PlzNavigate
233 // Returns the time the first call to Init completed successfully (after a new
234 // renderer process was created); further calls to Init won't change this
235 // value.
236 // Note: Will disappear after PlzNavitate is completed.
nasko 2014/10/20 18:03:39 nit: I'd say let's add "Do not use." to the commen
carlosk 2014/10/20 19:42:55 Done.
237 virtual const base::TimeTicks& init_time() const = 0;
nasko 2014/10/20 18:03:39 Public API methods should be CamelCased, not hacke
carlosk 2014/10/20 19:42:55 Done.
238
232 // Static management functions ----------------------------------------------- 239 // Static management functions -----------------------------------------------
233 240
234 // Flag to run the renderer in process. This is primarily 241 // Flag to run the renderer in process. This is primarily
235 // for debugging purposes. When running "in process", the 242 // for debugging purposes. When running "in process", the
236 // browser maintains a single RenderProcessHost which communicates 243 // browser maintains a single RenderProcessHost which communicates
237 // to a RenderProcess which is instantiated in the same process 244 // to a RenderProcess which is instantiated in the same process
238 // with the Browser. All IPC between the Browser and the 245 // with the Browser. All IPC between the Browser and the
239 // Renderer is the same, it's just not crossing a process boundary. 246 // Renderer is the same, it's just not crossing a process boundary.
240 247
241 static bool run_renderer_in_process(); 248 static bool run_renderer_in_process();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 static void SetMaxRendererProcessCount(size_t count); 287 static void SetMaxRendererProcessCount(size_t count);
281 288
282 // Returns the current maximum number of renderer process hosts kept by the 289 // Returns the current maximum number of renderer process hosts kept by the
283 // content module. 290 // content module.
284 static size_t GetMaxRendererProcessCount(); 291 static size_t GetMaxRendererProcessCount();
285 }; 292 };
286 293
287 } // namespace content. 294 } // namespace content.
288 295
289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 296 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_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