 Chromium Code Reviews
 Chromium Code Reviews 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
    
  
    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| OLD | NEW | 
|---|---|
| (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 | |
| OLD | NEW |