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

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

Issue 2857263003: Task Manager should listen to WebContentsObserver::RenderFrameCreated. (Closed)
Patch Set: . Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_
7
8 #include "base/callback.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 class RenderProcessHost;
14
15 // Posts |task|, if |render_process_host| is ready or when it becomes ready (see
16 // RenderProcessHost::IsReady method). The |task| might not run at all (e.g. if
17 // |render_process_host| is destroyed before becoming ready). This function can
18 // only be called on the browser's UI thread (and the |task| will be posted back
19 // on the UI thread).
20 CONTENT_EXPORT void PostTaskWhenRenderProcessHostIsReady(
21 RenderProcessHost* render_process_host,
22 base::OnceClosure task);
Łukasz Anforowicz 2017/05/06 00:16:45 Also - please shout if you think I should add a te
23
24 } // namespace content
25
26 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698