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 #ifndef CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_
6 #define CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_
8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebPrerender.h"
10 #include "ui/gfx/geometry/size.h"
14 class PrerenderExtraData
: public blink::WebPrerender::ExtraData
{
16 PrerenderExtraData(int prerender_id
,
17 int render_view_route_id
,
18 const gfx::Size
& size
);
19 virtual ~PrerenderExtraData();
21 int prerender_id() const { return prerender_id_
; }
22 int render_view_route_id() const { return render_view_route_id_
; }
23 const gfx::Size
& size() const { return size_
; }
25 static const PrerenderExtraData
& FromPrerender(
26 const blink::WebPrerender
& prerender
);
29 const int prerender_id_
;
30 const int render_view_route_id_
;
31 const gfx::Size size_
;
33 DISALLOW_COPY_AND_ASSIGN(PrerenderExtraData
);
36 } // namespace prerender
38 #endif // CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_