diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h')
-rw-r--r-- | Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h b/Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h index 19675b2b9..939a7e21b 100644 --- a/Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h +++ b/Source/WebKit2/UIProcess/InspectorServer/WebInspectorServer.h @@ -24,8 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebInspectorServer_h -#define WebInspectorServer_h +#pragma once #if ENABLE(INSPECTOR_SERVER) @@ -38,10 +37,10 @@ namespace WebKit { class WebInspectorProxy; -class WebInspectorServer : public WebSocketServer, public WebSocketServerClient { +class WebInspectorServer final : public WebSocketServer, public WebSocketServerClient { public: typedef HashMap<unsigned, WebInspectorProxy*> ClientMap; - static WebInspectorServer& shared(); + static WebInspectorServer& singleton(); // Page registry to manage known pages. int registerPage(WebInspectorProxy* client); @@ -54,14 +53,14 @@ private: ~WebInspectorServer(); // WebSocketServerClient implementation. Events coming from remote connections. - virtual void didReceiveUnrecognizedHTTPRequest(WebSocketServerConnection*, PassRefPtr<HTTPRequest>); - virtual bool didReceiveWebSocketUpgradeHTTPRequest(WebSocketServerConnection*, PassRefPtr<HTTPRequest>); - virtual void didEstablishWebSocketConnection(WebSocketServerConnection*, PassRefPtr<HTTPRequest>); - virtual void didReceiveWebSocketMessage(WebSocketServerConnection*, const String& message); - virtual void didCloseWebSocketConnection(WebSocketServerConnection*); + void didReceiveUnrecognizedHTTPRequest(WebSocketServerConnection*, PassRefPtr<HTTPRequest>) final; + bool didReceiveWebSocketUpgradeHTTPRequest(WebSocketServerConnection*, PassRefPtr<HTTPRequest>) final; + void didEstablishWebSocketConnection(WebSocketServerConnection*, PassRefPtr<HTTPRequest>) final; + void didReceiveWebSocketMessage(WebSocketServerConnection*, const String& message) final; + void didCloseWebSocketConnection(WebSocketServerConnection*) final; bool platformResourceForPath(const String& path, Vector<char>& data, String& contentType); -#if PLATFORM(GTK) || PLATFORM(EFL) +#if PLATFORM(GTK) void buildPageList(Vector<char>& data, String& contentType); #endif @@ -75,5 +74,3 @@ private: } #endif // ENABLE(INSPECTOR_SERVER) - -#endif // WebInspectorServer_h |