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

Unified Diff: public/platform/WebPrerender.h

Issue 144863004: Add relTypes() to WebPrerender.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/platform/exported/WebPrerender.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPrerender.h
diff --git a/public/platform/WebPrerender.h b/public/platform/WebPrerender.h
index cb30c7601c5a26532024af1bc45969aec7f0324d..eb77bf9e1662a862698aa469b2c96620bab0dd94 100644
--- a/public/platform/WebPrerender.h
+++ b/public/platform/WebPrerender.h
@@ -47,6 +47,12 @@ class Prerender;
namespace blink {
+// WebPrerenderRelType is a bitfield since multiple rel attributes can be set on the same prerender.
+enum WebPrerenderRelType {
+ PrerenderRelTypePrerender = 0x1,
+ PrerenderRelTypeNext = 0x2,
+};
+
class WebPrerender {
public:
class ExtraData {
@@ -75,6 +81,7 @@ public:
BLINK_PLATFORM_EXPORT WebURL url() const;
BLINK_PLATFORM_EXPORT WebString referrer() const;
+ BLINK_PLATFORM_EXPORT unsigned relTypes() const;
abarth-chromium 2014/02/08 01:11:33 Often we'll typedef unsigned to WebPrerenderRelTyp
gavinp 2014/02/08 03:28:17 I like that idea very much. I will do that in http
BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const;
BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
« no previous file with comments | « Source/platform/exported/WebPrerender.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698