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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |