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

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

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | public/platform/WebPrerender.h » ('j') | public/platform/WebPrerender.h » ('J')
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool WebPrerender::isNull() const 80 bool WebPrerender::isNull() const
81 { 81 {
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
91 {
92 // For now, all prerenders have RelTypePrerender.
93 // TODO: Once https://codereview.chromium.org/113803003/ lands in Chrome, re -land r164241 to set this correctly.
94 return PrerenderRelTypePrerender;
95 }
96
90 WebString WebPrerender::referrer() const 97 WebString WebPrerender::referrer() const
91 { 98 {
92 return m_private->referrer(); 99 return m_private->referrer();
93 } 100 }
94 101
95 WebReferrerPolicy WebPrerender::referrerPolicy() const 102 WebReferrerPolicy WebPrerender::referrerPolicy() const
96 { 103 {
97 return static_cast<WebReferrerPolicy>(m_private->referrerPolicy()); 104 return static_cast<WebReferrerPolicy>(m_private->referrerPolicy());
98 } 105 }
99 106
(...skipping 24 matching lines...) Expand all
124 { 131 {
125 m_private->didSendLoadForPrerender(); 132 m_private->didSendLoadForPrerender();
126 } 133 }
127 134
128 void WebPrerender::didSendDOMContentLoadedForPrerender() 135 void WebPrerender::didSendDOMContentLoadedForPrerender()
129 { 136 {
130 m_private->didSendDOMContentLoadedForPrerender(); 137 m_private->didSendDOMContentLoadedForPrerender();
131 } 138 }
132 139
133 } // namespace blink 140 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebPrerender.h » ('j') | public/platform/WebPrerender.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698