blob: 5b888d5cbb79a1144c84ae1e485ef6856b5b9757 [file] [log] [blame]
lukasza779a08f82015-11-04 18:27:041// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_RENDERER_WEB_FRAME_UTILS_H_
6#define CONTENT_RENDERER_WEB_FRAME_UTILS_H_
7
8namespace blink {
9class WebFrame;
10}
11
12namespace content {
13
lukasza70b79c82015-12-14 20:24:1314// Returns either a WebLocalFrame or WebRemoteFrame based on |routing_id|.
15// Returns nullptr if |routing_id| doesn't properly map to a frame.
16blink::WebFrame* GetWebFrameFromRoutingIdForFrameOrProxy(int routing_id);
17
lukasza779a08f82015-11-04 18:27:0418} // namespace content
19
20#endif // CONTENT_RENDERER_WEB_FRAME_UTILS_H_