Changeset 61865 in webkit


Ignore:
Timestamp:
Jun 25, 2010 8:45:41 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-06-25 Lei Zheng <lzheng@chromium.org>

Reviewed by Dimitri Glazkov.

Add a flag to the ResourceResponse for tracking if a request was fetched when
Alternate-protocol is available.
https://bugs.webkit.org/show_bug.cgi?id=41001

No new tests. (This is just a setter and getter.)

  • platform/network/chromium/ResourceResponse.h: (WebCore::ResourceResponse::ResourceResponse): (WebCore::ResourceResponse::wasAlternateProtocolAvailable): (WebCore::ResourceResponse::setWasAlternateProtocolAvailable):

2010-06-25 Lei Zheng <lzheng@chromium.org>

Reviewed by Dimitri Glazkov.

[Chromium] Add a flag to the ResourceResponse for tracking if a request was fetched
when Alternate-Protocol is available.

https://bugs.webkit.org/show_bug.cgi?id=41001

  • public/WebURLResponse.h:
  • src/WebURLResponse.cpp: (WebKit::WebURLResponse::wasAlternateProtocolAvailable): (WebKit::WebURLResponse::setWasAlternateProtocolAvailable):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61864 r61865  
     12010-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
    1162010-06-25  Lyon Chen  <liachen@rim.com>
    217
  • trunk/WebCore/platform/network/chromium/ResourceResponse.h

    r60955 r61865  
    2222 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    2323 * (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.
    2525 */
    2626
     
    4242            , m_wasFetchedViaSPDY(false)
    4343            , m_wasNpnNegotiated(false)
     44            , m_wasAlternateProtocolAvailable(false)
    4445            , m_wasFetchedViaProxy(false)
    4546            , m_responseTime(0)
     
    5455            , m_wasFetchedViaSPDY(false)
    5556            , m_wasNpnNegotiated(false)
     57            , m_wasAlternateProtocolAvailable(false)
    5658            , m_wasFetchedViaProxy(false)
    5759            , m_responseTime(0)
     
    7678        bool wasNpnNegotiated() const { return m_wasNpnNegotiated; }
    7779        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        }
    7889
    7990        bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; }
     
    120131        bool m_wasNpnNegotiated;
    121132
     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
    122137        // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc).
    123138        bool m_wasFetchedViaProxy;
  • trunk/WebKit/chromium/ChangeLog

    r61856 r61865  
     12010-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
    1152010-06-25  Michael Nordman  <michaeln@google.com>
    216
  • trunk/WebKit/chromium/public/WebURLResponse.h

    r60955 r61865  
    132132    WEBKIT_API void setWasNpnNegotiated(bool);
    133133
     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
    134139    // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc).
    135140    WEBKIT_API bool wasFetchedViaProxy() const;
  • trunk/WebKit/chromium/src/WebURLResponse.cpp

    r60955 r61865  
    288288}
    289289
     290bool WebURLResponse::wasAlternateProtocolAvailable() const
     291{
     292    return m_private->m_resourceResponse->wasAlternateProtocolAvailable();
     293}
     294
     295void WebURLResponse::setWasAlternateProtocolAvailable(bool value)
     296{
     297    m_private->m_resourceResponse->setWasAlternateProtocolAvailable(value);
     298}
     299
    290300bool WebURLResponse::wasFetchedViaProxy() const
    291301{
Note: See TracChangeset for help on using the changeset viewer.