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

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

Issue 633083002: Changes PlzNavitate histograms to try and simplify their multi-modal characteristic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Discounting time spent on beforeunload, created navigation metrics data class and updated histograms.xml. 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"
11 #include "base/process/process_handle.h" 11 #include "base/process/process_handle.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ipc/ipc_channel_proxy.h" 14 #include "ipc/ipc_channel_proxy.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 class GURL; 18 class GURL;
19 struct ViewMsg_SwapOut_Params; 19 struct ViewMsg_SwapOut_Params;
20 20
21 namespace base { 21 namespace base {
22 class TimeDelta; 22 class TimeDelta;
23 class TimeTicks;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 class BrowserContext; 27 class BrowserContext;
27 class BrowserMessageFilter; 28 class BrowserMessageFilter;
28 class RenderProcessHostObserver; 29 class RenderProcessHostObserver;
29 class RenderWidgetHost; 30 class RenderWidgetHost;
30 class ServiceRegistry; 31 class ServiceRegistry;
31 class StoragePartition; 32 class StoragePartition;
32 struct GlobalRequestID; 33 struct GlobalRequestID;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // transferring it to a new renderer process. 223 // transferring it to a new renderer process.
223 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 224 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
224 225
225 // Notifies the renderer that the timezone configuration of the system might 226 // Notifies the renderer that the timezone configuration of the system might
226 // have changed. 227 // have changed.
227 virtual void NotifyTimezoneChange() = 0; 228 virtual void NotifyTimezoneChange() = 0;
228 229
229 // Returns the ServiceRegistry for this process. 230 // Returns the ServiceRegistry for this process.
230 virtual ServiceRegistry* GetServiceRegistry() = 0; 231 virtual ServiceRegistry* GetServiceRegistry() = 0;
231 232
233 // The time at which the first call to Init happened and the child renderer
234 // process was created.
235 virtual const base::TimeTicks& GetInitTime() const = 0;
nasko 2014/10/08 17:10:42 Methods that are only used within content/ don't n
carlosk 2014/10/09 16:53:45 Done.
236
232 // Static management functions ----------------------------------------------- 237 // Static management functions -----------------------------------------------
233 238
234 // Flag to run the renderer in process. This is primarily 239 // Flag to run the renderer in process. This is primarily
235 // for debugging purposes. When running "in process", the 240 // for debugging purposes. When running "in process", the
236 // browser maintains a single RenderProcessHost which communicates 241 // browser maintains a single RenderProcessHost which communicates
237 // to a RenderProcess which is instantiated in the same process 242 // to a RenderProcess which is instantiated in the same process
238 // with the Browser. All IPC between the Browser and the 243 // with the Browser. All IPC between the Browser and the
239 // Renderer is the same, it's just not crossing a process boundary. 244 // Renderer is the same, it's just not crossing a process boundary.
240 245
241 static bool run_renderer_in_process(); 246 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); 285 static void SetMaxRendererProcessCount(size_t count);
281 286
282 // Returns the current maximum number of renderer process hosts kept by the 287 // Returns the current maximum number of renderer process hosts kept by the
283 // content module. 288 // content module.
284 static size_t GetMaxRendererProcessCount(); 289 static size_t GetMaxRendererProcessCount();
285 }; 290 };
286 291
287 } // namespace content. 292 } // namespace content.
288 293
289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 294 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698