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

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

Issue 1422473004: Vector-of-structs (instead of struct-of-vectors) in "savable resources" IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-serialization-original-url-yay
Patch Set: Rebasing... Created 5 years, 1 month 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/web_frame_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/renderer/web_frame_utils.h"
6
7 #include "content/renderer/render_frame_impl.h"
8 #include "content/renderer/render_frame_proxy.h"
9 #include "ipc/ipc_message.h"
10 #include "third_party/WebKit/public/web/WebFrame.h"
11
12 namespace content {
13
14 int GetRoutingIdForFrameOrProxy(blink::WebFrame* web_frame) {
15 if (!web_frame)
16 return MSG_ROUTING_NONE;
17 if (web_frame->isWebRemoteFrame())
18 return RenderFrameProxy::FromWebFrame(web_frame)->routing_id();
19 return RenderFrameImpl::FromWebFrame(web_frame)->GetRoutingID();
20 }
21
22 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/web_frame_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698