OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |