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

Side by Side Diff: content/public/renderer/render_frame.h

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)
Patch Set: Set output pointers correctly 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
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_RENDERER_RENDER_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // Returns the RenderFrame given a WebFrame. 96 // Returns the RenderFrame given a WebFrame.
97 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); 97 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame);
98 98
99 // Returns the RenderFrame given a routing id. 99 // Returns the RenderFrame given a routing id.
100 static RenderFrame* FromRoutingID(int routing_id); 100 static RenderFrame* FromRoutingID(int routing_id);
101 101
102 // Visit all live RenderFrames. 102 // Visit all live RenderFrames.
103 static void ForEach(RenderFrameVisitor* visitor); 103 static void ForEach(RenderFrameVisitor* visitor);
104 104
105 static int GetRoutingIdForWebFrame(blink::WebFrame* web_frame);
Charlie Reis 2017/05/05 21:03:08 Please add a comment. Note that it's easier to ta
lpz 2017/05/10 14:21:10 Done.
106
105 // Returns the RenderView associated with this frame. 107 // Returns the RenderView associated with this frame.
106 virtual RenderView* GetRenderView() = 0; 108 virtual RenderView* GetRenderView() = 0;
107 109
108 // Return the RenderAccessibility associated with this frame. 110 // Return the RenderAccessibility associated with this frame.
109 virtual RenderAccessibility* GetRenderAccessibility() = 0; 111 virtual RenderAccessibility* GetRenderAccessibility() = 0;
110 112
111 // Get the routing ID of the frame. 113 // Get the routing ID of the frame.
112 virtual int GetRoutingID() = 0; 114 virtual int GetRoutingID() = 0;
113 115
114 // Returns the associated WebFrame. 116 // Returns the associated WebFrame.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 269
268 private: 270 private:
269 // This interface should only be implemented inside content. 271 // This interface should only be implemented inside content.
270 friend class RenderFrameImpl; 272 friend class RenderFrameImpl;
271 RenderFrame() {} 273 RenderFrame() {}
272 }; 274 };
273 275
274 } // namespace content 276 } // namespace content
275 277
276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 278 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698