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

Side by Side Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: Cleanup Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool WebDocument::isXHTMLDocument() const 130 bool WebDocument::isXHTMLDocument() const
131 { 131 {
132 return constUnwrap<Document>()->isXHTMLDocument(); 132 return constUnwrap<Document>()->isXHTMLDocument();
133 } 133 }
134 134
135 bool WebDocument::isPluginDocument() const 135 bool WebDocument::isPluginDocument() const
136 { 136 {
137 return constUnwrap<Document>()->isPluginDocument(); 137 return constUnwrap<Document>()->isPluginDocument();
138 } 138 }
139 139
140 bool WebDocument::isPrefetchOnly() const
141 {
142 return constUnwrap<Document>()->isPrefetchOnly();
clamy 2016/08/25 22:34:59 How is isPrefetchOnly set on the document? Is this
mattcary 2016/08/26 08:17:51 Yes, only true for no-state prefetch currently. It
143 }
144
140 WebURL WebDocument::baseURL() const 145 WebURL WebDocument::baseURL() const
141 { 146 {
142 return constUnwrap<Document>()->baseURL(); 147 return constUnwrap<Document>()->baseURL();
143 } 148 }
144 149
145 WebURL WebDocument::firstPartyForCookies() const 150 WebURL WebDocument::firstPartyForCookies() const
146 { 151 {
147 return constUnwrap<Document>()->firstPartyForCookies(); 152 return constUnwrap<Document>()->firstPartyForCookies();
148 } 153 }
149 154
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 m_private = elem; 332 m_private = elem;
328 return *this; 333 return *this;
329 } 334 }
330 335
331 WebDocument::operator Document*() const 336 WebDocument::operator Document*() const
332 { 337 {
333 return toDocument(m_private.get()); 338 return toDocument(m_private.get());
334 } 339 }
335 340
336 } // namespace blink 341 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698