Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / renderer / prerender / prerender_extra_data.cc
blob842446d3e48fe7cf0bc4ce0585fdbcae48cdb40f
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"
9 namespace prerender {
11 PrerenderExtraData::PrerenderExtraData(
12 int prerender_id,
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),
17 size_(size) {
20 PrerenderExtraData::~PrerenderExtraData() {
23 // static
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