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

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

Issue 2797383002: Introduce RenderFrameVisitor (Closed)
Patch Set: Use the correct copyright notice Created 3 years, 8 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
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/public/renderer/render_frame_visitor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class Context; 51 class Context;
52 class Isolate; 52 class Isolate;
53 } 53 }
54 54
55 namespace content { 55 namespace content {
56 class AssociatedInterfaceProvider; 56 class AssociatedInterfaceProvider;
57 class AssociatedInterfaceRegistry; 57 class AssociatedInterfaceRegistry;
58 class ContextMenuClient; 58 class ContextMenuClient;
59 class PluginInstanceThrottler; 59 class PluginInstanceThrottler;
60 class RenderAccessibility; 60 class RenderAccessibility;
61 class RenderFrameVisitor;
61 class RenderView; 62 class RenderView;
62 struct ContextMenuParams; 63 struct ContextMenuParams;
63 struct WebPluginInfo; 64 struct WebPluginInfo;
64 struct WebPreferences; 65 struct WebPreferences;
65 66
66 // This interface wraps functionality, which is specific to frames, such as 67 // This interface wraps functionality, which is specific to frames, such as
67 // navigation. It provides communication with a corresponding RenderFrameHost 68 // navigation. It provides communication with a corresponding RenderFrameHost
68 // in the browser process. 69 // in the browser process.
69 class CONTENT_EXPORT RenderFrame : public IPC::Listener, 70 class CONTENT_EXPORT RenderFrame : public IPC::Listener,
70 public IPC::Sender { 71 public IPC::Sender {
(...skipping 20 matching lines...) Expand all
91 DONT_RECORD_DECISION = 0, 92 DONT_RECORD_DECISION = 0,
92 RECORD_DECISION = 1 93 RECORD_DECISION = 1
93 }; 94 };
94 95
95 // Returns the RenderFrame given a WebFrame. 96 // Returns the RenderFrame given a WebFrame.
96 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); 97 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame);
97 98
98 // Returns the RenderFrame given a routing id. 99 // Returns the RenderFrame given a routing id.
99 static RenderFrame* FromRoutingID(int routing_id); 100 static RenderFrame* FromRoutingID(int routing_id);
100 101
102 // Visit all live RenderFrames.
103 static void ForEach(RenderFrameVisitor* visitor);
104
101 // Returns the RenderView associated with this frame. 105 // Returns the RenderView associated with this frame.
102 virtual RenderView* GetRenderView() = 0; 106 virtual RenderView* GetRenderView() = 0;
103 107
104 // Return the RenderAccessibility associated with this frame. 108 // Return the RenderAccessibility associated with this frame.
105 virtual RenderAccessibility* GetRenderAccessibility() = 0; 109 virtual RenderAccessibility* GetRenderAccessibility() = 0;
106 110
107 // Get the routing ID of the frame. 111 // Get the routing ID of the frame.
108 virtual int GetRoutingID() = 0; 112 virtual int GetRoutingID() = 0;
109 113
110 // Returns the associated WebFrame. 114 // Returns the associated WebFrame.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 267
264 private: 268 private:
265 // This interface should only be implemented inside content. 269 // This interface should only be implemented inside content.
266 friend class RenderFrameImpl; 270 friend class RenderFrameImpl;
267 RenderFrame() {} 271 RenderFrame() {}
268 }; 272 };
269 273
270 } // namespace content 274 } // namespace content
271 275
272 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 276 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/renderer/BUILD.gn ('k') | content/public/renderer/render_frame_visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698