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

Unified Diff: content/public/browser/web_contents.h

Issue 865723002: Improve comments on WebContentsObserver RenderFrame* methods and rename. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 49ea4cde75b80a1fb743ad92a9b429d356f05365..ed0092f988c0d2a11b67f971d65a14db588e5aa1 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -192,6 +192,9 @@ class WebContents : public PageNavigator,
virtual RenderFrameHost* GetFocusedFrame() = 0;
// Calls |on_frame| for each frame in the currently active view.
+ // Note: The RenderFrameHost parameter is not guaranteed to have a live
+ // RenderFrame counterpart in the renderer process. Callbacks should check
+ // IsRenderFrameLive, as sending IPC messages to it will fail silently.
Charlie Reis 2015/01/22 00:17:15 nit: to it in this case
nasko 2015/01/22 00:27:23 Done.
virtual void ForEachFrame(
const base::Callback<void(RenderFrameHost*)>& on_frame) = 0;

Powered by Google App Engine
This is Rietveld 408576698