Changeset 141710 in webkit


Ignore:
Timestamp:
Feb 2, 2013 5:11:02 PM (11 years ago)
Author:
weinig@apple.com
Message:

Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
https://bugs.webkit.org/show_bug.cgi?id=108757

Reviewed by Anders Carlsson.

  • Shared/Authentication/AuthenticationManager.cpp:
  • Shared/Authentication/AuthenticationManager.h:

(AuthenticationManager):

  • Shared/Authentication/AuthenticationManager.messages.in:
  • Shared/Network/CustomProtocols/CustomProtocolManager.h:

(CustomProtocolManager):

  • Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
  • Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
  • UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:

(CustomProtocolManagerProxy):

  • UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
  • UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
Location:
trunk/Source/WebKit2
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r141709 r141710  
     12013-02-02  Sam Weinig  <sam@webkit.org>
     2
     3        Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
     4        https://bugs.webkit.org/show_bug.cgi?id=108757
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * Shared/Authentication/AuthenticationManager.cpp:
     9        * Shared/Authentication/AuthenticationManager.h:
     10        (AuthenticationManager):
     11        * Shared/Authentication/AuthenticationManager.messages.in:
     12        * Shared/Network/CustomProtocols/CustomProtocolManager.h:
     13        (CustomProtocolManager):
     14        * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
     15        * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
     16        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
     17        (CustomProtocolManagerProxy):
     18        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
     19        * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
     20
    1212013-02-02  Christophe Dumez  <christophe.dumez@intel.com>
    222
  • trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp

    r141658 r141710  
    6262{
    6363    m_process->addMessageReceiver(Messages::AuthenticationManager::messageReceiverName(), this);
    64 }
    65 
    66 void AuthenticationManager::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageDecoder& decoder)
    67 {
    68     didReceiveAuthenticationManagerMessage(connection, decoder);
    6964}
    7065
  • trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.h

    r141658 r141710  
    6767    // CoreIPC::MessageReceiver
    6868    virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&) OVERRIDE;
    69     void didReceiveAuthenticationManagerMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&);
    7069
    7170    bool tryUsePlatformCertificateInfoForChallenge(const WebCore::AuthenticationChallenge&, const PlatformCertificateInfo&);
  • trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.messages.in

    r140752 r141710  
    2121# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2222
    23 messages -> AuthenticationManager LegacyReceiver {
     23messages -> AuthenticationManager {
    2424    void UseCredentialForChallenge(uint64_t challengeID, WebCore::Credential credential, WebKit::PlatformCertificateInfo certificate);
    2525    void ContinueWithoutCredentialForChallenge(uint64_t challengeID);
  • trunk/Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h

    r141658 r141710  
    8585    // CoreIPC::MessageReceiver
    8686    virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&) OVERRIDE;
    87     void didReceiveCustomProtocolManagerMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&);
    8887
    8988    void didFailWithError(uint64_t customProtocolID, const WebCore::ResourceError&);
  • trunk/Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.messages.in

    r140605 r141710  
    2323#if ENABLE(CUSTOM_PROTOCOLS)
    2424
    25 messages -> CustomProtocolManager LegacyReceiver {
     25messages -> CustomProtocolManager {
    2626    DidFailWithError(uint64_t customProtocolID, WebCore::ResourceError error)
    2727    DidLoadData(uint64_t customProtocolID, CoreIPC::DataReference data)
  • trunk/Source/WebKit2/Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm

    r141663 r141710  
    175175}
    176176
    177 void CustomProtocolManager::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageDecoder& decoder)
    178 {
    179     didReceiveCustomProtocolManagerMessage(connection, decoder);
    180 }
    181 
    182177void CustomProtocolManager::didFailWithError(uint64_t customProtocolID, const WebCore::ResourceError& error)
    183178{
  • trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h

    r141472 r141710  
    2929#if ENABLE(CUSTOM_PROTOCOLS)
    3030
     31#include "MessageReceiver.h"
     32
    3133#if PLATFORM(MAC)
    3234#include <wtf/HashMap.h>
     
    3436OBJC_CLASS WKCustomProtocolLoader;
    3537#endif
    36 
    37 namespace CoreIPC {
    38 class Connection;
    39 class MessageDecoder;
    40 } // namespace CoreIPC
    4138
    4239namespace WebCore {
     
    4845class ChildProcessProxy;
    4946
    50 class CustomProtocolManagerProxy {
     47class CustomProtocolManagerProxy : public CoreIPC::MessageReceiver {
    5148public:
    5249    explicit CustomProtocolManagerProxy(ChildProcessProxy*);
    5350
    54     void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&);
    5551    void startLoading(uint64_t customProtocolID, const WebCore::ResourceRequest&);
    5652    void stopLoading(uint64_t customProtocolID);
    5753
     54    // CoreIPC::MessageReceiver
     55    virtual void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&) OVERRIDE;
     56
    5857private:
    59     void didReceiveCustomProtocolManagerProxyMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&);
    60 
    6158    ChildProcessProxy* m_childProcessProxy;
    6259
  • trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in

    r140605 r141710  
    2323#if ENABLE(CUSTOM_PROTOCOLS)
    2424
    25 messages -> CustomProtocolManagerProxy LegacyReceiver {
     25messages -> CustomProtocolManagerProxy {
    2626    StartLoading(uint64_t customProtocolID, WebCore::ResourceRequest request)
    2727    StopLoading(uint64_t customProtocolID)
  • trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm

    r141361 r141710  
    128128}
    129129
    130 void CustomProtocolManagerProxy::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageDecoder& decoder)
    131 {
    132     didReceiveCustomProtocolManagerProxyMessage(connection, decoder);
    133 }
    134 
    135130void CustomProtocolManagerProxy::startLoading(uint64_t customProtocolID, const ResourceRequest& coreRequest)
    136131{
Note: See TracChangeset for help on using the changeset viewer.