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

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: 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
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
10 namespace content {
11
12 int GetRoutingIdForFrameOrProxy(blink::WebFrame* web_frame) {
13 if (!web_frame)
14 return MSG_ROUTING_NONE;
ncarter (slow) 2015/10/28 22:28:39 Need an #include for MSG_ROUTING_NONE
Łukasz Anforowicz 2015/10/28 23:12:06 Done.
15 if (web_frame->isWebRemoteFrame())
ncarter (slow) 2015/10/28 22:28:38 Need an #include for WebFrame.
Łukasz Anforowicz 2015/10/28 23:12:06 Done.
16 return RenderFrameProxy::FromWebFrame(web_frame)->routing_id();
17 return RenderFrameImpl::FromWebFrame(web_frame)->GetRoutingID();
18 }
19
20 } // namespace content
OLDNEW
« content/common/savable_subframe.h ('K') | « content/renderer/web_frame_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698