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

Side by Side Diff: Source/platform/exported/WebPrerender.cpp

Issue 116183005: Add support for rel=next to Prerender in Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add missing file 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/Prerender.cpp ('k') | Source/web/tests/PrerenderingTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return m_private.isNull(); 82 return m_private.isNull();
83 } 83 }
84 84
85 WebURL WebPrerender::url() const 85 WebURL WebPrerender::url() const
86 { 86 {
87 return WebURL(m_private->url()); 87 return WebURL(m_private->url());
88 } 88 }
89 89
90 unsigned WebPrerender::relTypes() const 90 unsigned WebPrerender::relTypes() const
91 { 91 {
92 // For now, all prerenders have RelTypePrerender. 92 return m_private->relTypes();
93 // TODO: Once https://codereview.chromium.org/113803003/ lands in Chrome, re -land r164241 to set this correctly.
94 return PrerenderRelTypePrerender;
95 } 93 }
96 94
97 WebString WebPrerender::referrer() const 95 WebString WebPrerender::referrer() const
98 { 96 {
99 return m_private->referrer(); 97 return m_private->referrer();
100 } 98 }
101 99
102 WebReferrerPolicy WebPrerender::referrerPolicy() const 100 WebReferrerPolicy WebPrerender::referrerPolicy() const
103 { 101 {
104 return static_cast<WebReferrerPolicy>(m_private->referrerPolicy()); 102 return static_cast<WebReferrerPolicy>(m_private->referrerPolicy());
(...skipping 26 matching lines...) Expand all
131 { 129 {
132 m_private->didSendLoadForPrerender(); 130 m_private->didSendLoadForPrerender();
133 } 131 }
134 132
135 void WebPrerender::didSendDOMContentLoadedForPrerender() 133 void WebPrerender::didSendDOMContentLoadedForPrerender()
136 { 134 {
137 m_private->didSendDOMContentLoadedForPrerender(); 135 m_private->didSendDOMContentLoadedForPrerender();
138 } 136 }
139 137
140 } // namespace blink 138 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/Prerender.cpp ('k') | Source/web/tests/PrerenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698