Changeset 61865 in webkit
- Timestamp:
- Jun 25, 2010 8:45:41 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61864 r61865 1 2010-06-25 Lei Zheng <lzheng@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Add a flag to the ResourceResponse for tracking if a request was fetched when 6 Alternate-protocol is available. 7 https://bugs.webkit.org/show_bug.cgi?id=41001 8 9 No new tests. (This is just a setter and getter.) 10 11 * platform/network/chromium/ResourceResponse.h: 12 (WebCore::ResourceResponse::ResourceResponse): 13 (WebCore::ResourceResponse::wasAlternateProtocolAvailable): 14 (WebCore::ResourceResponse::setWasAlternateProtocolAvailable): 15 1 16 2010-06-25 Lyon Chen <liachen@rim.com> 2 17 -
trunk/WebCore/platform/network/chromium/ResourceResponse.h
r60955 r61865 22 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 25 */ 26 26 … … 42 42 , m_wasFetchedViaSPDY(false) 43 43 , m_wasNpnNegotiated(false) 44 , m_wasAlternateProtocolAvailable(false) 44 45 , m_wasFetchedViaProxy(false) 45 46 , m_responseTime(0) … … 54 55 , m_wasFetchedViaSPDY(false) 55 56 , m_wasNpnNegotiated(false) 57 , m_wasAlternateProtocolAvailable(false) 56 58 , m_wasFetchedViaProxy(false) 57 59 , m_responseTime(0) … … 76 78 bool wasNpnNegotiated() const { return m_wasNpnNegotiated; } 77 79 void setWasNpnNegotiated(bool value) { m_wasNpnNegotiated = value; } 80 81 bool wasAlternateProtocolAvailable() const 82 { 83 return m_wasAlternateProtocolAvailable; 84 } 85 void setWasAlternateProtocolAvailable(bool value) 86 { 87 m_wasAlternateProtocolAvailable = value; 88 } 78 89 79 90 bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; } … … 120 131 bool m_wasNpnNegotiated; 121 132 133 // Was the resource fetched over a channel which specified "Alternate-Protocol" 134 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). 135 bool m_wasAlternateProtocolAvailable; 136 122 137 // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc). 123 138 bool m_wasFetchedViaProxy; -
trunk/WebKit/chromium/ChangeLog
r61856 r61865 1 2010-06-25 Lei Zheng <lzheng@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 [Chromium] Add a flag to the ResourceResponse for tracking if a request was fetched 6 when Alternate-Protocol is available. 7 8 https://bugs.webkit.org/show_bug.cgi?id=41001 9 10 * public/WebURLResponse.h: 11 * src/WebURLResponse.cpp: 12 (WebKit::WebURLResponse::wasAlternateProtocolAvailable): 13 (WebKit::WebURLResponse::setWasAlternateProtocolAvailable): 14 1 15 2010-06-25 Michael Nordman <michaeln@google.com> 2 16 -
trunk/WebKit/chromium/public/WebURLResponse.h
r60955 r61865 132 132 WEBKIT_API void setWasNpnNegotiated(bool); 133 133 134 // Flag whether this request was made when "Alternate-Protocol: xxx" 135 // is present in server's response. 136 WEBKIT_API bool wasAlternateProtocolAvailable() const; 137 WEBKIT_API void setWasAlternateProtocolAvailable(bool); 138 134 139 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc). 135 140 WEBKIT_API bool wasFetchedViaProxy() const; -
trunk/WebKit/chromium/src/WebURLResponse.cpp
r60955 r61865 288 288 } 289 289 290 bool WebURLResponse::wasAlternateProtocolAvailable() const 291 { 292 return m_private->m_resourceResponse->wasAlternateProtocolAvailable(); 293 } 294 295 void WebURLResponse::setWasAlternateProtocolAvailable(bool value) 296 { 297 m_private->m_resourceResponse->setWasAlternateProtocolAvailable(value); 298 } 299 290 300 bool WebURLResponse::wasFetchedViaProxy() const 291 301 {
Note: See TracChangeset
for help on using the changeset viewer.