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

Unified Diff: chrome/renderer/prerender/prerender_extra_data.h

Issue 9875026: **NOTFORLANDING** New link rel=prerender API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch sets 3-7 against trunk, for combined browsing Created 8 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/prerender/prerender_extra_data.h
diff --git a/chrome/renderer/prerender/prerender_extra_data.h b/chrome/renderer/prerender/prerender_extra_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..b307d12400e4cbe8842bbd4151ec142c1d9edd09
--- /dev/null
+++ b/chrome/renderer/prerender/prerender_extra_data.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_
+#define CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebPrerender.h"
+#include "ui/gfx/size.h"
+
+namespace prerender {
+
+class PrerenderExtraData : public WebKit::WebPrerender::ExtraData {
+ public:
+ PrerenderExtraData(int prerender_id,
+ int render_view_route_id,
+ const gfx::Size& size);
+ virtual ~PrerenderExtraData() { }
+
+ int prerender_id() const { return prerender_id_; }
+ int render_view_route_id() const { return render_view_route_id_; }
+ const gfx::Size& size() const { return size_; }
+
+ static const PrerenderExtraData& fromPrerender(
+ const WebKit::WebPrerender& prerender);
+
+ private:
+ int prerender_id_;
+ int render_view_route_id_;
+ gfx::Size size_;
+
+ DISALLOW_COPY_AND_ASSIGN(PrerenderExtraData);
+};
+
+} // namespace prerender
+
+#endif // CHROME_RENDERER_PRERENDER_PRERENDER_EXTRA_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698