Index: webkit/glue/weburlresponse_extradata_impl.h |
diff --git a/webkit/glue/weburlresponse_extradata_impl.h b/webkit/glue/weburlresponse_extradata_impl.h |
index 30075fb3b521f8dd6b1f1230bc166ab11d895c37..ee0c9050d061e3cad54e2c1951ceb411b17d938d 100644 |
--- a/webkit/glue/weburlresponse_extradata_impl.h |
+++ b/webkit/glue/weburlresponse_extradata_impl.h |
@@ -25,15 +25,56 @@ class WEBKIT_GLUE_EXPORT WebURLResponseExtraDataImpl |
const std::string& npn_negotiated_protocol() const { |
return npn_negotiated_protocol_; |
} |
+ |
+ // Flag whether this request was loaded via an explicit proxy |
+ // (HTTP, SOCKS, etc). |
+ bool wasFetchedViaProxy() const { |
darin (slow to review)
2013/03/04 05:35:48
nit: please use google C++ style since this is chr
Ryan Hamilton
2013/03/04 17:27:09
Oh, good point! Done.
|
+ return was_fetched_via_proxy_; |
+ } |
+ void setWasFetchedViaProxy(bool was_fetched_via_proxy) { |
+ was_fetched_via_proxy_ = was_fetched_via_proxy; |
+ } |
+ |
+ /// Flag whether this request was loaded via the SPDY protocol or not. |
+ // SPDY is an experimental web protocol, see http://dev.chromium.org/spdy |
+ bool wasFetchedViaSPDY() const { |
+ return was_fetched_via_spdy_; |
+ } |
+ void setWasFetchedViaSPDY(bool was_fetched_via_spdy) { |
+ was_fetched_via_spdy_ = was_fetched_via_spdy; |
+ } |
+ |
+ // Flag whether this request was loaded after the |
+ // TLS/Next-Protocol-Negotiation was used. |
+ // This is related to SPDY. |
+ bool wasNpnNegotiated() const { |
+ return was_npn_negotiated_; |
+ } |
+ void setWasNpnNegotiated(bool was_npn_negotiated) { |
+ was_npn_negotiated_ = was_npn_negotiated; |
+ } |
+ |
+ // Flag whether this request was made when "Alternate-Protocol: xxx" |
+ // is present in server's response. |
+ bool wasAlternateProtocolAvailable() const { |
+ return was_alternate_protocol_available_; |
+ } |
+ void setWasAlternateProtocolAvailable(bool was_alternate_protocol_available) { |
+ was_alternate_protocol_available_ = was_alternate_protocol_available; |
+ } |
+ |
bool is_ftp_directory_listing() const { return is_ftp_directory_listing_; } |
void set_is_ftp_directory_listing(bool is_ftp_directory_listing) { |
is_ftp_directory_listing_ = is_ftp_directory_listing; |
} |
- |
private: |
std::string npn_negotiated_protocol_; |
bool is_ftp_directory_listing_; |
+ bool was_fetched_via_proxy_; |
+ bool was_fetched_via_spdy_; |
+ bool was_npn_negotiated_; |
+ bool was_alternate_protocol_available_; |
DISALLOW_COPY_AND_ASSIGN(WebURLResponseExtraDataImpl); |
}; |