Changeset 147915 in webkit


Ignore:
Timestamp:
Apr 8, 2013 8:30:04 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Provide more specific error description for SocketStreamError
https://bugs.webkit.org/show_bug.cgi?id=114134

Patch by Seokju Kwon <Seokju Kwon> on 2013-04-08
Reviewed by Rob Buis.

Pass the reason of a failure to SocketStreamError instance
and notify it via SocketStreamHandleClient::didFailSocketStream().

  • platform/network/blackberry/SocketStreamError.h:

(WebCore::SocketStreamError::SocketStreamError):

  • platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:

(WebCore::SocketStreamHandle::notifyStatusReceived):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147914 r147915  
     12013-04-08  Seokju Kwon  <seokju.kwon@gmail.com>
     2
     3        [BlackBerry] Provide more specific error description for SocketStreamError
     4        https://bugs.webkit.org/show_bug.cgi?id=114134
     5
     6        Reviewed by Rob Buis.
     7
     8        Pass the reason of a failure to SocketStreamError instance
     9        and notify it via SocketStreamHandleClient::didFailSocketStream().
     10
     11        * platform/network/blackberry/SocketStreamError.h:
     12        (WebCore::SocketStreamError::SocketStreamError):
     13        * platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:
     14        (WebCore::SocketStreamHandle::notifyStatusReceived):
     15
    1162013-04-08  Youenn Fablet  <youennf@gmail.com>
    217
  • trunk/Source/WebCore/platform/network/blackberry/SocketStreamError.h

    r101328 r147915  
    11/*
    22 * Copyright (C) 2009 Google Inc.  All rights reserved.
     3 * Copyright (C) 2013 Seokju Kwon (seokju.kwon@gmail.com)
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    4344    {
    4445    }
     46    SocketStreamError(int errorCode, const BlackBerry::Platform::String& description)
     47        : SocketStreamErrorBase(errorCode, String(), description)
     48    {
     49    }
    4550
    4651};
  • trunk/Source/WebCore/platform/network/blackberry/SocketStreamHandleBlackBerry.cpp

    r131324 r147915  
    106106    m_status = status;
    107107    if (FilterStream::StatusSuccess != status)
    108         m_client->didFailSocketStream(this, SocketStreamError(status));
     108        m_client->didFailSocketStream(this, SocketStreamError(status, message));
    109109    else {
    110110        m_state = Open;
Note: See TracChangeset for help on using the changeset viewer.