1 // Copyright (c) 2012 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.
5 #include "chrome/renderer/prerender/prerender_extra_data.h"
7 #include "base/logging.h"
11 PrerenderExtraData::PrerenderExtraData(
13 int render_view_route_id
,
14 const gfx::Size
& size
)
15 : prerender_id_(prerender_id
),
16 render_view_route_id_(render_view_route_id
),
20 PrerenderExtraData::~PrerenderExtraData() {
24 const PrerenderExtraData
& PrerenderExtraData::FromPrerender(
25 const blink::WebPrerender
& prerender
) {
26 DCHECK(prerender
.extraData());
27 return static_cast<const PrerenderExtraData
&>(*prerender
.extraData());
30 } // namespace prerender