summaryrefslogtreecommitdiff
path: root/chromium/content/renderer/web_frame_utils.h
blob: 5b888d5cbb79a1144c84ae1e485ef6856b5b9757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_RENDERER_WEB_FRAME_UTILS_H_
#define CONTENT_RENDERER_WEB_FRAME_UTILS_H_

namespace blink {
class WebFrame;
}

namespace content {

// Returns either a WebLocalFrame or WebRemoteFrame based on |routing_id|.
// Returns nullptr if |routing_id| doesn't properly map to a frame.
blink::WebFrame* GetWebFrameFromRoutingIdForFrameOrProxy(int routing_id);

}  // namespace content

#endif  // CONTENT_RENDERER_WEB_FRAME_UTILS_H_