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

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

Issue 1628423002: Add frameId to chrome.tabs.executeScript/insertCSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissiondata-remove-process_id
Patch Set: Nits + comments Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual SiteInstance* GetSiteInstance() = 0; 71 virtual SiteInstance* GetSiteInstance() = 0;
72 72
73 // Returns the process for this frame. 73 // Returns the process for this frame.
74 virtual RenderProcessHost* GetProcess() = 0; 74 virtual RenderProcessHost* GetProcess() = 0;
75 75
76 // Returns the current RenderFrameHost of the parent frame, or nullptr if 76 // Returns the current RenderFrameHost of the parent frame, or nullptr if
77 // there is no parent. The result may be in a different process than the 77 // there is no parent. The result may be in a different process than the
78 // current RenderFrameHost. 78 // current RenderFrameHost.
79 virtual RenderFrameHost* GetParent() = 0; 79 virtual RenderFrameHost* GetParent() = 0;
80 80
81 // Calls |on_frame| for each child frame of this RenderFrameHost.
82 // Note: The RenderFrameHost parameter is not guaranteed to have a live
83 // RenderFrame counterpart in the renderer process. Callbacks should check
84 // IsRenderFrameLive, as sending IPC messages to it in this case will fail
85 // silently.
86 virtual void ForEachChildFrame(
87 const base::Callback<void(RenderFrameHost*)>& on_frame) = 0;
88
81 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and 89 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and
82 // uniquely identifies a frame that hosts content. The identifier is fixed at 90 // uniquely identifies a frame that hosts content. The identifier is fixed at
83 // the creation of the frame and stays constant for the lifetime of the frame. 91 // the creation of the frame and stays constant for the lifetime of the frame.
84 // When the frame is removed, the ID is not used again. 92 // When the frame is removed, the ID is not used again.
85 // 93 //
86 // A RenderFrameHost is tied to a process. Due to cross-process navigations, 94 // A RenderFrameHost is tied to a process. Due to cross-process navigations,
87 // the RenderFrameHost may have a shorter lifetime than a frame. Consequently, 95 // the RenderFrameHost may have a shorter lifetime than a frame. Consequently,
88 // the same FrameTreeNode ID may refer to a different RenderFrameHost after a 96 // the same FrameTreeNode ID may refer to a different RenderFrameHost after a
89 // navigation. 97 // navigation.
90 virtual int GetFrameTreeNodeId() = 0; 98 virtual int GetFrameTreeNodeId() = 0;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 207
200 private: 208 private:
201 // This interface should only be implemented inside content. 209 // This interface should only be implemented inside content.
202 friend class RenderFrameHostImpl; 210 friend class RenderFrameHostImpl;
203 RenderFrameHost() {} 211 RenderFrameHost() {}
204 }; 212 };
205 213
206 } // namespace content 214 } // namespace content
207 215
208 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 216 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698