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

Side by Side Diff: content/renderer/web_frame_utils.h

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)
Patch Set: Use explicitly-sized int types in IPC definition Created 3 years, 6 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/renderer/savable_resources.cc ('k') | content/renderer/web_frame_utils.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RENDERER_WEB_FRAME_UTILS_H_ 5 #ifndef CONTENT_RENDERER_WEB_FRAME_UTILS_H_
6 #define CONTENT_RENDERER_WEB_FRAME_UTILS_H_ 6 #define CONTENT_RENDERER_WEB_FRAME_UTILS_H_
7 7
8 namespace blink { 8 namespace blink {
9 class WebFrame; 9 class WebFrame;
10 } 10 }
11 11
12 namespace content { 12 namespace content {
13 13
14 // Returns the routing ID of the RenderFrameImpl or RenderFrameProxy
15 // associated with |web_frame|.
16 int GetRoutingIdForFrameOrProxy(blink::WebFrame* web_frame);
17
18 // Returns either a WebLocalFrame or WebRemoteFrame based on |routing_id|. 14 // Returns either a WebLocalFrame or WebRemoteFrame based on |routing_id|.
19 // Returns nullptr if |routing_id| doesn't properly map to a frame. 15 // Returns nullptr if |routing_id| doesn't properly map to a frame.
20 blink::WebFrame* GetWebFrameFromRoutingIdForFrameOrProxy(int routing_id); 16 blink::WebFrame* GetWebFrameFromRoutingIdForFrameOrProxy(int routing_id);
21 17
22 } // namespace content 18 } // namespace content
23 19
24 #endif // CONTENT_RENDERER_WEB_FRAME_UTILS_H_ 20 #endif // CONTENT_RENDERER_WEB_FRAME_UTILS_H_
OLDNEW
« no previous file with comments | « content/renderer/savable_resources.cc ('k') | content/renderer/web_frame_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698